예제 #1
0
파일: rooms.py 프로젝트: marado/tzmud
    def __init__(self, name='', short='', long='', owner=None,
                    exits=None, items=None):
        TZContainer.__init__(self, name, short, long, owner, items)

        self.settings.append('period')

        self._exit_ids = PersistentList()
        if exits is not None:
            for x in exits:
                self.addexit(x)
        self._player_ids = PersistentList()
        self._mob_ids = PersistentList()

        self._last_periodic = 0

        add(self)

        self.periodically()
예제 #2
0
파일: items.py 프로젝트: cryptixman/tzmud
    def __init__(self, name='', short='', long='', owner=None):
        TZContainer.__init__(self, name, short, long, owner)
        add(self)

        self._bse = 'Item'