| Trees | Index | Help |
|
|---|
| Package svs_demogame :: Module gameviews :: Class TrackerGameView |
|
GameView --+
|
TrackerGameView
GameView providing additional methods for
Tracker client.
| Method Summary | |
|---|---|
__init__(self,
parent,
context)
| |
Called by agent view components when selected, passes info onto client. | |
Called by area view components when selected, passes info onto client. | |
Called by component sprites when selected. | |
Selects specified item if present within view. | |
| Inherited from GameView | |
Responds to main window being adjusted in size. | |
Clears entire game world from canvas. | |
Clears any selected items in view. | |
Displays gameworld coordinates for specified view location. | |
Draws new view graphics for agents. | |
Clears canvas and draws the game world, scaled to canvas area. | |
Gets script for selected agent. | |
Responds to single-click from mouse. | |
Selects agent with matching id number. | |
Selects area with matching id number. | |
Creates agent sprites. | |
Maps gamewolrd dimensions to canvas, creates terrainAreaViews. | |
Sets dimensions of game world. | |
Updates agentViews with specified data. | |
Updates terrainAreaViews with specified data. | |
Converts location in world coordinates to screen coordinates. | |
| Method Details |
|---|
agentSelected(self, agent)Called by agent view components when selected, passes info onto client. |
areaSelected(self, area)Called by area view components when selected, passes info onto client.
|
makeSelection(self, identifier, selectedItem)Called by component sprites when selected. Sends message to parent for synchronisation. NOTE: this version of the method is slightly different from that of others, as normally an identifier is dervied from theselectedItem object itself. This should really be fixed in
later versions.
|
selectItem(self, selectedItem)Selects specified item if present within view. This method is used to synchronise selesctions between the different tracker views. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:29 2005 | http://epydoc.sf.net |