Example #1
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     if game.getState().getCurrentState().getName(
     ) == PanoConstants.STATE_INVENTORY:
         game.getState().popState()
     else:
         game.getState().pushState(PanoConstants.STATE_INVENTORY)
Example #2
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.hideDebugConsole()
Example #3
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     if not game.isDebugConsoleVisible():
         game.showDebugConsole()
     else:
         game.hideDebugConsole()
Example #4
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.resume()
Example #5
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.pause()
Example #6
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     state = game.getState().getCurrentState()
     if state.getName() == PanoConstants.STATE_EXPLORE:
         state.changeDisplayNode(params[0])
Example #7
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.getState().changeState(params[0])
Example #8
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.quit()