diff mode.py @ 5:bc88f7d5ca8b

Added base files for grease
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 10:16:48 +0200
parents
children 708a6f651c31
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mode.py	Tue Jul 12 10:16:48 2011 +0200
@@ -0,0 +1,21 @@
+
+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"""
\ No newline at end of file