Ejemplo n.º 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)
Ejemplo n.º 2
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.hideDebugConsole()
Ejemplo n.º 3
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     if not game.isDebugConsoleVisible():
         game.showDebugConsole()
     else:
         game.hideDebugConsole()
Ejemplo n.º 4
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.resume()
Ejemplo n.º 5
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.pause()
Ejemplo n.º 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])
Ejemplo n.º 7
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.getState().changeState(params[0])
Ejemplo n.º 8
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.quit()