예제 #1
0
파일: rooms.py 프로젝트: marado/tzmud
    def act_near(self, info):
        '''Something has happened in this room. Handle it if necessary,
            and pass the action on to any contained items.

        '''

        TZObj.act_near(self, info)

        for player in self.players():
            player.act_near(info)

        for mob in self.mobs():
            mob.act_near(info)

        for item in self.items():
            item.act_near(info)

        for x in self.exits():
            x.act_near(info)
예제 #2
0
파일: items.py 프로젝트: cryptixman/tzmud
 def act_near(self, info):
     TZObj.act_near(self, info)