comparison mode.py @ 17:7b31de1dc964

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 e0477f8983cb
children 86799b61e5dc
comparison
equal deleted inserted replaced
16:5c587a0d9ad7 17:7b31de1dc964
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)