annotate src/parpg/world.py @ 29:ad18c3f912c5

Made sure that the modules in the current directory are imported, and not those in the python path
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 12:30:41 +0200
parents 09b581087d68
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)