comparison gamescenecontroller.py @ 8:708a6f651c31

Modifications to use the grease manager and modes
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 12:31:53 +0200
parents bf1dd9c24a7e
children 3011bc71ab20
comparison
equal deleted inserted replaced
7:710f299ed275 8:708a6f651c31
514 if(command.getCommandType() == fife.CMD_MOUSE_FOCUS_GAINED): 514 if(command.getCommandType() == fife.CMD_MOUSE_FOCUS_GAINED):
515 self.has_mouse_focus = True 515 self.has_mouse_focus = True
516 elif(command.getCommandType() == fife.CMD_MOUSE_FOCUS_LOST): 516 elif(command.getCommandType() == fife.CMD_MOUSE_FOCUS_LOST):
517 self.has_mouse_focus = False 517 self.has_mouse_focus = False
518 518
519 def pump(self): 519 def pump(self, dt):
520 """Routine called during each frame. Our main loop is in ./run.py""" 520 """Routine called during each frame. Our main loop is in ./run.py"""
521 # uncomment to instrument 521 # uncomment to instrument
522 # t0 = time.time() 522 # t0 = time.time()
523 if self.paused: 523 if self.paused:
524 return 524 return
525 ControllerBase.pump(self, dt)
525 self.updateMouse() 526 self.updateMouse()
526 if self.model.active_map: 527 if self.model.active_map:
527 self.view.highlightFrontObject(self.last_mousecoords) 528 self.view.highlightFrontObject(self.last_mousecoords)
528 self.view.refreshTopLayerTransparencies() 529 self.view.refreshTopLayerTransparencies()
529 self.handleScrolling() 530 self.handleScrolling()