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
|
1 from grease.world import *
|
|
2 from mode import FifeMode
|
|
3
|
|
4 class World(FifeModeMode, BaseWorld):
|
|
5
|
|
6 def pump(self, dt):
|
|
7 for component in self.components:
|
|
8 if hasattr(component, "step"):
|
|
9 component.step(dt)
|
|
10 for system in self.systems:
|
|
11 if hasattr(system, "step"):
|
|
12 system.step(dt)
|