comparison world.py @ 5:bc88f7d5ca8b

Added base files for grease
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 10:16:48 +0200
parents
children 708a6f651c31
comparison
equal deleted inserted replaced
4:bf1dd9c24a7e 5:bc88f7d5ca8b
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)