Package scripts :: Script console :: Class Console
[hide private]
[frames] | no frames]

Class Console

Instance Methods [hide private]
 
__init__(self, app_listener)
 
handleConsoleCommand(self, command)
Implements the console logic
 
handleGrid(self, command)
Implements the grid console command
 
handleHelp(self, command)
Implements the help console command
 
handleLoad(self, command)
Implements the load console command
 
handlePause(self, command)
Implements the pause console command
 
handlePython(self, command)
 
handleQuit(self, command)
Implements the quit console command
 
handleRun(self, command)
Toggles run/walk mode of the PC player
 
handleSave(self, command)
Implements the save console command
Method Details [hide private]

__init__(self, app_listener)
(Constructor)

 
Parameters:
  • appListener (ApplicationListener) - ApplicationListener object providing a link with the Controller, the view and the GameModel

handleConsoleCommand(self, command)

 

Implements the console logic

Parameters:
  • command (string) - The command to run
Returns:
The response string

handleGrid(self, command)

 

Implements the grid console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring

handleHelp(self, command)

 

Implements the help console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring

handleLoad(self, command)

 

Implements the load console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring

handlePause(self, command)

 

Implements the pause console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring

handleQuit(self, command)

 

Implements the quit console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring

handleRun(self, command)

 

Toggles run/walk mode of the PC player

Parameters:
  • command (string) - The command to run.
Returns:
The response

handleSave(self, command)

 

Implements the save console command

Parameters:
  • command (string) - The command to run
Returns:
The resultstring