diff controllerbase.py @ 88:0411a4bcceee

Fixed moving between maps.
author KarstenBock@gmx.net
date Mon, 26 Sep 2011 15:44:42 +0200
parents 708a6f651c31
children 80672955ab70
line wrap: on
line diff
--- a/controllerbase.py	Sat Sep 24 16:48:06 2011 +0200
+++ b/controllerbase.py	Mon Sep 26 15:44:42 2011 +0200
@@ -17,9 +17,9 @@
 from parpg.common.listeners.key_listener import KeyListener
 from parpg.common.listeners.mouse_listener import MouseListener
 from parpg.common.listeners.command_listener import CommandListener
-from parpg.world import World
+from parpg.mode import FifeMode
 
-class ControllerBase(World, KeyListener, MouseListener, CommandListener):
+class ControllerBase(FifeMode, KeyListener, MouseListener, CommandListener):
     """Base of Controllers"""
     def __init__(self, 
                  engine, 
@@ -42,7 +42,7 @@
         KeyListener.__init__(self, application.event_listener)        
         MouseListener.__init__(self, application.event_listener)
         CommandListener.__init__(self, application.event_listener)
-        World.__init__(self)
+        FifeMode.__init__(self)
         self.engine = engine
         self.event_manager = engine.getEventManager()
         self.view = view
@@ -88,3 +88,5 @@
                            self.model.settings.parpg.CursorDefault])
         self.setMouseCursor(image, image)
     
+    def pump(self, dt):
+        pass