Changeset 118 for adventure/thing.py
- Timestamp:
- 10/15/07 18:32:33 (3 years ago)
- Files:
-
- 1 modified
-
adventure/thing.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adventure/thing.py
r114 r118 5 5 6 6 class Thing: 7 def _ init__(self, world, name, parent):8 self.wor d = word7 def __init__(self, world, name, parent): 8 self.world = world 9 9 self.name = name 10 10 self.parent = parent 11 self.aliases = list() # Noms alternatifs11 self.aliases = (name,) # Noms alternatifs 12 12 self.actions = list() 13 13 self.presence = None … … 54 54 target = None 55 55 if command.action[2]: 56 for object_ in self.place.objects: 57 if object_.place == self.place and object_.name == command.action[2]: 58 target = object_ 59 break 60 for participant in self.place.participants: 61 if participant.place == self.place and participant.name == command.action[2]: 62 target = participant 56 for thing in self.world.each_thing_by_place(self.place): 57 if thing.name == command.action[2]: 58 target = thing 63 59 break 64 60 #else:
