Exemplo n.º 1
0
 def __init__(self, name="item slot", canEquip=[], default=None, *arg,
              **kwarg):
     MudObject.__init__(self, name, *arg, **kwarg)
     self.shortDescription = name
     self._default = default
     self._slot = default
     self._canEquip = canEquip
Exemplo n.º 2
0
    def evt_die(self):
        for slot in self.gear:
            self.unequip(slot)

        for thing in self.inventory:
            self.drop(thing)

        MudObject.evt_die(self)
Exemplo n.º 3
0
    def evt_die(self):
        for slot in self.gear:
            self.unequip(slot)

        for thing in self.inventory:
            self.drop(thing)

        MudObject.evt_die(self)
Exemplo n.º 4
0
 def __init__(self, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.primaryWeaponSlot = 0
     self.foe = None
     self.name = "unnamed mobile"
     self.isAlive = True
     self.exp = 0
     self.gear = MudInventory()
     self.inventory = MudList(owner=self)
     self.identified = []
Exemplo n.º 5
0
    def __init__(self, exitsTo=None, magicWord=None, *arg, **kwarg):
        MudObject.__init__(self, *arg, **kwarg)
        self.exitsTo = exitsTo
        self.isOpen = True
        self._pair = None  # if this door gets opened, then open the pair

        if magicWord != None:
            self.magicWord = magicWord.lower()
        else:
            self.magicWord = None
Exemplo n.º 6
0
 def __init__(self, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.primaryWeaponSlot = 0
     self.foe = None
     self.name = "unnamed mobile"
     self.isAlive = True
     self.exp = 0
     self.gear = MudInventory()
     self.inventory = MudList(owner=self)
     self.identified = []
Exemplo n.º 7
0
    def __init__(self, exitsTo=None, magicWord=None, *arg, **kwarg):
        MudObject.__init__(self, *arg, **kwarg)
        self.exitsTo = exitsTo
        self.isOpen = True
        self._pair = None  # if this door gets opened, then open the pair

        if magicWord != None:
            self.magicWord = magicWord.lower()
        else:
            self.magicWord = None
Exemplo n.º 8
0
 def __init__(self,
              name="item slot",
              canEquip=[],
              default=None,
              *arg,
              **kwarg):
     MudObject.__init__(self, name, *arg, **kwarg)
     self.shortDescription = name
     self._default = default
     self._slot = default
     self._canEquip = canEquip
Exemplo n.º 9
0
 def __init__(self, gearClass=None, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.name = "unnamed gear"
     self.gearClass = gearClass
Exemplo n.º 10
0
    def __init__(self, *arg, **kwarg):
        MudObject.__init__(self)
        MudList.__init__(self, *arg, **kwarg)
        self.channel = evt.TalkChannel("room channel - %s" % self.name)

        super(Room, self).Bind(evt.EVT_LOOK, self.on_look)
Exemplo n.º 11
0
 def __init__(self):
     MudObject.__init__(self)
     self.name = "Unidentified"
     self.shortDescription = "An unidentified thing"
Exemplo n.º 12
0
 def __init__(self, thing, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.control = thing
Exemplo n.º 13
0
 def __init__(self, thing, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.control = thing
Exemplo n.º 14
0
 def __init__(self, gearClass=None, *arg, **kwarg):
     MudObject.__init__(self, *arg, **kwarg)
     self.name = "unnamed gear"
     self.gearClass = gearClass
Exemplo n.º 15
0
    def __init__(self, *arg, **kwarg):
        MudObject.__init__(self)
        MudList.__init__(self, *arg, **kwarg)
        self.channel = evt.TalkChannel("room channel - %s" % self.name)

        super(Room, self).Bind(evt.EVT_LOOK, self.on_look)
Exemplo n.º 16
0
 def __init__(self):
     MudObject.__init__(self)
     self.name = "Unidentified"
     self.shortDescription = "An unidentified thing"
Exemplo n.º 17
0
 def __init__(self, q=1, *arg, **kwarg):
     self.quantity = q
     MudObject.__init__(self, *arg, **kwarg)
Exemplo n.º 18
0
 def __init__(self, q=1, *arg, **kwarg):
     self.quantity = q
     MudObject.__init__(self, *arg, **kwarg)