comparison src/parpg/world.py @ 90:0319dcc47603

Added equipable component.
author KarstenBock@gmx.net
date Wed, 21 Sep 2011 15:25:32 +0200
parents b764229a0fad
children 0f659c7675f6
comparison
equal deleted inserted replaced
89:b5619032c521 90:0319dcc47603
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)