Mercurial > parpg-core
comparison 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 |
comparison
equal
deleted
inserted
replaced
26:5529dd5644b8 | 27:09b581087d68 |
---|---|
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) |