annotate src/parpg/world.py @ 27:09b581087d68

Added base files for grease
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 10:16:48 +0200
parents
children 94cb5843dcbb
rev   line source
27
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
1 from grease.world import *
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
2 from mode import FifeMode
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
3
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
4 class World(FifeModeMode, BaseWorld):
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
5
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
6 def pump(self, dt):
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
7 for component in self.components:
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
8 if hasattr(component, "step"):
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
9 component.step(dt)
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
10 for system in self.systems:
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
11 if hasattr(system, "step"):
09b581087d68 Added base files for grease
KarstenBock@gmx.net
parents:
diff changeset
12 system.step(dt)