Mercurial > parpg-source
view mode.py @ 6:ce33d344e202
Removed leftover pyglet specific code
author | KarstenBock@gmx.net |
---|---|
date | Tue, 12 Jul 2011 12:29:42 +0200 |
parents | bc88f7d5ca8b |
children | 708a6f651c31 |
line wrap: on
line source
from grease.mode import * from fife.extensions.basicapplication import ApplicationBase import abc class FifeManager(BaseManager, ApplicationBase): def __init__(self, TDS): ApplicationBase.__init__(self, TDS) self.modes = [] self._settings = TDS def _pump(self): if self.current_mode: self.current_mode.pump(self.engine.getTimeManager().getTimeDelta() / 1000) class FifeMode(BaseMode): @abc.abstractmethod def pump(self, dt): """Performs actions every frame"""