Mercurial > parpg-core
view src/parpg/world.py @ 52:872e9ca29969
Added fifeagent as component to the Character entity and added a method that attaches the behaviour to the layer
author | KarstenBock@gmx.net |
---|---|
date | Sun, 04 Sep 2011 15:19:47 +0200 |
parents | 94cb5843dcbb |
children | b15cf999216a |
line wrap: on
line source
from parpg.grease.world import * from parpg.mode import FifeMode class World(FifeMode, BaseWorld): def __init__(self): FifeMode.__init__(self) BaseWorld.__init__(self) def pump(self, dt): for component in self.components: if hasattr(component, "step"): component.step(dt) for system in self.systems: if hasattr(system, "step"): system.step(dt)