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)
     if not game.isDebugConsoleVisible():
         game.showDebugConsole()
     else:
         game.hideDebugConsole()
Example #3
0
 def __init__(self):
     BaseAction.__init__(self, 'acToggleConsole',
                         'Toggles the debug console visibility')
Example #4
0
 def __init__(self):
     BaseAction.__init__(self, 'acShowConsole', 'Show the debug console')
Example #5
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.resume()
Example #6
0
 def __init__(self):
     BaseAction.__init__(self, 'acResume', 'Resumes the game')
Example #7
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.pause()
Example #8
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.quit()
Example #9
0
 def __init__(self):
     BaseAction.__init__(self, 'acVoid', 'Does nothing')
Example #10
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 #11
0
 def __init__(self):
     BaseAction.__init__(self, 'acGotoNode',
                         'Changes the currently active node.')
Example #12
0
 def __init__(self):
     BaseAction.__init__(self, 'acToggleInventory',
                         'Toggles the visibility of the inventory')
Example #13
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.getState().changeState(params[0])
Example #14
0
 def __init__(self):
     BaseAction.__init__(self, 'acChangeState',
                         'Changes the state of the game')
Example #15
0
 def __init__(self):
     BaseAction.__init__(self, 'acHideConsole', 'Hides the debug console')
Example #16
0
 def __init__(self):
     BaseAction.__init__(self, 'acPause', 'Pauses the game')
Example #17
0
 def execute(self, game, params):
     BaseAction.execute(self, game, params)
     game.hideDebugConsole()
Example #18
0
 def __init__(self):
     BaseAction.__init__(self, 'acExit', 'Exits the game')