comparison world.py @ 68:8915ff6183b0

Added equip to the usable components of the World class.
author KarstenBock@gmx.net
date Wed, 21 Sep 2011 16:48:01 +0200
parents e856b604b650
children a9cc5559ec2a
comparison
equal deleted inserted replaced
67:1a450a764817 68:8915ff6183b0
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 self.components.equipable = components.Equipable()
25 self.components.equip = components.Equip()
25 26
26 def pump(self, dt): 27 def pump(self, dt):
27 for component in self.components: 28 for component in self.components:
28 if hasattr(component, "step"): 29 if hasattr(component, "step"):
29 component.step(dt) 30 component.step(dt)