comparison world.py @ 60:e2004c9549d7

Added ChangeMap component.
author KarstenBock@gmx.net
date Sun, 18 Sep 2011 16:07:07 +0200
parents d3a9caba067b
children e5acfeca9bc9
comparison
equal deleted inserted replaced
59:535801aec63e 60:e2004c9549d7
18 self.components.description = components.Description() 18 self.components.description = components.Description()
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 23 self.components.change_map = components.ChangeMap()
24 #WORKAROUND: To get rid of exception in gamescenecontroller
25 self.components.change_map = Component()
26 24
27 def pump(self, dt): 25 def pump(self, dt):
28 for component in self.components: 26 for component in self.components:
29 if hasattr(component, "step"): 27 if hasattr(component, "step"):
30 component.step(dt) 28 component.step(dt)