def __init__(self, name='', short='', long='', room=None, destination=None, return_name=''): from share import Deprecated raise Deprecated TZObj.__init__(self, name, short, long) self._rid = None self.room = room self.weight = 0 self.locked = False if room is not None: room.addexit(self) self.destination = destination if return_name and destination is not None: x = destination.exitname(return_name) if x is not None: x.destination = room else: x = Exit(return_name, room=destination, destination=room) self.link(x) self._keys = PersistentList() add(self)
def __init__(self, name='', short='', long='', owner=None): 'Initialize this item, and add it to the item index.' TZObj.__init__(self, name, short, long, owner) add(self)