Mercurial > parpg-core
view src/parpg/mode.py @ 47:5a0b7b1f0230
Modified run_tests.py to use the parpg folder in "src"
author | KarstenBock@gmx.net |
---|---|
date | Fri, 02 Sep 2011 15:54:56 +0200 |
parents | 8b3890f17f94 |
children | 5e27c24acaef |
line wrap: on
line source
from parpg.grease.mode import * import abc class FifeManager(BaseManager): def __init__(self): self.modes = [] def _pump(self): if self.current_mode: self.current_mode.pump(self.engine.getTimeManager().getTimeDelta() / 1000.0) class FifeMode(BaseMode): def __init__(self): BaseMode.__init__(self) @abc.abstractmethod def pump(self, dt): """Performs actions every frame"""