comparison 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
comparison
equal deleted inserted replaced
87:aed2e094e0c7 88:0411a4bcceee
15 from fife import fife 15 from fife import fife
16 16
17 from parpg.common.listeners.key_listener import KeyListener 17 from parpg.common.listeners.key_listener import KeyListener
18 from parpg.common.listeners.mouse_listener import MouseListener 18 from parpg.common.listeners.mouse_listener import MouseListener
19 from parpg.common.listeners.command_listener import CommandListener 19 from parpg.common.listeners.command_listener import CommandListener
20 from parpg.world import World 20 from parpg.mode import FifeMode
21 21
22 class ControllerBase(World, KeyListener, MouseListener, CommandListener): 22 class ControllerBase(FifeMode, KeyListener, MouseListener, CommandListener):
23 """Base of Controllers""" 23 """Base of Controllers"""
24 def __init__(self, 24 def __init__(self,
25 engine, 25 engine,
26 view, 26 view,
27 model, 27 model,
40 @type settings: fife.extensions.fife_settings.Setting 40 @type settings: fife.extensions.fife_settings.Setting
41 ''' 41 '''
42 KeyListener.__init__(self, application.event_listener) 42 KeyListener.__init__(self, application.event_listener)
43 MouseListener.__init__(self, application.event_listener) 43 MouseListener.__init__(self, application.event_listener)
44 CommandListener.__init__(self, application.event_listener) 44 CommandListener.__init__(self, application.event_listener)
45 World.__init__(self) 45 FifeMode.__init__(self)
46 self.engine = engine 46 self.engine = engine
47 self.event_manager = engine.getEventManager() 47 self.event_manager = engine.getEventManager()
48 self.view = view 48 self.view = view
49 self.model = model 49 self.model = model
50 self.application = application 50 self.application = application
86 @return: None""" 86 @return: None"""
87 image = '/'.join(['gui/cursors/', 87 image = '/'.join(['gui/cursors/',
88 self.model.settings.parpg.CursorDefault]) 88 self.model.settings.parpg.CursorDefault])
89 self.setMouseCursor(image, image) 89 self.setMouseCursor(image, image)
90 90
91 def pump(self, dt):
92 pass