comparison src/parpg/mode.py @ 39:8b3890f17f94

FifeManager no longer subclasses ApplicationBase PARPGApplication stores an instance of tbe manager instead
author KarstenBock@gmx.net
date Wed, 03 Aug 2011 22:57:52 +0200
parents 70738c470ad7
children 5e27c24acaef
comparison
equal deleted inserted replaced
38:bd1e3b743518 39:8b3890f17f94
1 1
2 from parpg.grease.mode import * 2 from parpg.grease.mode import *
3 from fife.extensions.basicapplication import ApplicationBase
4 import abc 3 import abc
5 4
6 class FifeManager(BaseManager, ApplicationBase): 5 class FifeManager(BaseManager):
7 6
8 def __init__(self, TDS): 7 def __init__(self):
9 ApplicationBase.__init__(self, TDS)
10 self.modes = [] 8 self.modes = []
11 9
12 def _pump(self): 10 def _pump(self):
13 if self.current_mode: 11 if self.current_mode:
14 self.current_mode.pump(self.engine.getTimeManager().getTimeDelta() / 1000.0) 12 self.current_mode.pump(self.engine.getTimeManager().getTimeDelta() / 1000.0)