comparison src/parpg/gamescenecontroller.py @ 30:94cb5843dcbb

Modifications to use the grease manager and modes
author KarstenBock@gmx.net
date Tue, 12 Jul 2011 12:31:53 +0200
parents aa3d837024a3
children 32faacaf6f28
comparison
equal deleted inserted replaced
29:ad18c3f912c5 30:94cb5843dcbb
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()