comparison src/parpg/world.py @ 87:b764229a0fad

Added ChangeMap component.
author KarstenBock@gmx.net
date Sun, 18 Sep 2011 16:07:07 +0200
parents c25c734bd2a7
children 0319dcc47603
comparison
equal deleted inserted replaced
86:2e307c4f78e3 87:b764229a0fad
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)