Mercurial > parpg-core
diff src/parpg/world.py @ 30:94cb5843dcbb
Modifications to use the grease manager and modes
author | KarstenBock@gmx.net |
---|---|
date | Tue, 12 Jul 2011 12:31:53 +0200 |
parents | 09b581087d68 |
children | b15cf999216a |
line wrap: on
line diff
--- a/src/parpg/world.py Tue Jul 12 12:30:41 2011 +0200 +++ b/src/parpg/world.py Tue Jul 12 12:31:53 2011 +0200 @@ -1,12 +1,16 @@ -from grease.world import * -from mode import FifeMode +from parpg.grease.world import * +from parpg.mode import FifeMode -class World(FifeModeMode, BaseWorld): +class World(FifeMode, BaseWorld): + + def __init__(self): + FifeMode.__init__(self) + BaseWorld.__init__(self) def pump(self, dt): - for component in self.components: - if hasattr(component, "step"): - component.step(dt) - for system in self.systems: - if hasattr(system, "step"): - system.step(dt) + for component in self.components: + if hasattr(component, "step"): + component.step(dt) + for system in self.systems: + if hasattr(system, "step"): + system.step(dt) \ No newline at end of file