Mercurial > parpg-source
comparison world.py @ 63:e5acfeca9bc9
Added equipable component.
author | KarstenBock@gmx.net |
---|---|
date | Wed, 21 Sep 2011 15:25:32 +0200 |
parents | e2004c9549d7 |
children | e856b604b650 |
comparison
equal
deleted
inserted
replaced
62:bf63da4b27f5 | 63:e5acfeca9bc9 |
---|---|
19 self.components.dialogue = components.Dialogue() | 19 self.components.dialogue = components.Dialogue() |
20 self.components.fifeagent = components.FifeAgent() | 20 self.components.fifeagent = components.FifeAgent() |
21 self.components.lockable = components.Lockable() | 21 self.components.lockable = components.Lockable() |
22 self.components.usable = components.Usable() | 22 self.components.usable = components.Usable() |
23 self.components.change_map = components.ChangeMap() | 23 self.components.change_map = components.ChangeMap() |
24 self.components.equipable = components.Equipable() | |
24 | 25 |
25 def pump(self, dt): | 26 def pump(self, dt): |
26 for component in self.components: | 27 for component in self.components: |
27 if hasattr(component, "step"): | 28 if hasattr(component, "step"): |
28 component.step(dt) | 29 component.step(dt) |