| Trees | Index | Help |
|
|---|
| Package svs_demogame :: Module gui :: Class CodePlayerGUI |
|
ClientGUI --+
|
CodePlayerGUI
| Method Summary | |
|---|---|
__init__(self,
client)
| |
Called by agent view compoents when selected, passes info onto client. | |
Called by area view compoents when selected, passes info onto client. | |
Creates interface components. | |
Clear script editing area. | |
Closes and destroys interface components. | |
Displays gameworld coordinates for specified view location. | |
Displays revision log. | |
Retrieves text contents from script editing area. | |
Passes on request to client for script for agant. | |
Returns id for agent selected in self.gameView. | |
Returns id for terrain area selected in self.gameView. | |
Copies selected text from console. | |
Copies selected text from script area. | |
Cuts and copies selected text from console. | |
Cuts and copies selected text from script area. | |
Responds to 'Enter' button being clicked, send script to gameworld. | |
Pastes copied text into console. | |
Pastes copied text into script area. | |
Quits game client. | |
Responds to 'Reset' button being clicked, clears script editor. | |
Responds to 'History' button being clicked, get revision log for script. | |
Called when a script revision is selected from the revision log. | |
Clear script editing area and display new text. | |
Creates gameworld views from specified model. | |
showDefaultCursor(self,
event)
| |
showHandCursor(self,
event)
| |
Updates view components. | |
Updates gameworld views from specified data. | |
| Inherited from ClientGUI | |
Creates interface components. | |
Clear console. | |
Closes interface window. | |
Destroys visualisation view. | |
Handles text from input field as command. | |
Displays error message in console. | |
Retrieves text contents from console. | |
Hides visualisation view. | |
Open visualisation view. | |
Clear console and display new text. | |
If 'True' echoes input in console, if "False' then no echo. | |
Displays status message in console. | |
Step back one place in the buffer of input commands. | |
Step forward one place in the buffer of input commands. | |
| Method Details |
|---|
agentSelected(self, agentIdNum)Called by agent view compoents when selected, passes info onto client. |
areaSelected(self, areaIdNum)Called by area view compoents when selected, passes info onto client. |
build(self)Creates interface components.
|
clearScriptArea(self)Clear script editing area. |
destroy(self, args=None)Closes and destroys interface components.
|
displayPosition(self, viewX, viewY)Displays gameworld coordinates for specified view location. |
displayRevisionLog(self, logData)Displays revision log. |
getScriptAreaText(self)Retrieves text contents from script editing area. |
getScriptForAgent(self, agentIdNum)Passes on request to client for script for agant. |
getSelectedAgentId(self)Returns id for agent selected inself.gameView.
|
getSelectedAreaId(self)Returns id for terrain area selected inself.gameView.
|
onCopyConsole(self, event)Copies selected text from console. |
onCopyScriptArea(self, event)Copies selected text from script area. |
onCutConsole(self, event)Cuts and copies selected text from console. |
onCutScriptArea(self, event)Cuts and copies selected text from script area. |
onEnterScript(self)Responds to 'Enter' button being clicked, send script to gameworld. |
onPasteConsole(self, event)Pastes copied text into console. |
onPasteScriptArea(self, event)Pastes copied text into script area. |
onQuitClient(self)Quits game client. |
onResetScript(self)Responds to 'Reset' button being clicked, clears script editor. |
onScriptHistory(self)Responds to 'History' button being clicked, get revision log for script. |
revisionSelected(self, event, revNumber)Called when a script revision is selected from the revision log. |
setScriptAreaText(self, text='', filepath=None)Clear script editing area and display new text. |
setupGameWorld(self, gameModel)Creates gameworld views from specified model. The model is received as a dictionary in the following form:
|
update(self, timestamp)Updates view components.
|
updateGameWorld(self, updateData)Updates gameworld views from specified data. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:29 2005 | http://epydoc.sf.net |