| Trees | Index | Help |
|
|---|
| Module GameEngine :: Class GameEngine |
|
Engine --+
|
GameEngine
| Method Summary | |
|---|---|
Constructor. | |
clearScreen(self)
| |
Connect to a game server. | |
Disconnect a Session | |
isDebugModeEnabled(self)
| |
isServerRunning(self)
| |
Loading state loop. | |
Load an SVG drawing synchronously. | |
Main state loop. | |
Resize the game screen. | |
Restart the game. | |
Run one cycle of the task scheduler engine. | |
Show or hide the debug layer. | |
Set the Layer that will be shown when the all the
resources have been loaded. | |
Start the game server. | |
Stop the game server. | |
Toggle between fullscreen and windowed mode. | |
| Inherited from Engine | |
Add a task to the engine. | |
Pause a task. | |
| |
Remove a task from the engine. | |
Resume a paused task. | |
| Method Details |
|---|
__init__(self,
config=None)
Constructor.
|
connect(self, host)Connect to a game server.
|
disconnect(self, session)Disconnect a Session to disconnect
|
loading(self)Loading state loop. |
loadSvgDrawing(self, target, name, fileName, textureSize=None)
Load an SVG drawing synchronously.
@param target: An object that will own the drawing
@param name: The name of the attribute the drawing will be assigned to
@param fileName: The name of the file in the data directory
@param textureSize Either None or (x, y), in which case the file will
be rendered to an x by y texture
@return: L{SvgDrawing} instance
|
main(self)Main state loop. |
resizeScreen(self, width, height)Resize the game screen.
|
restart(self)Restart the game. |
run(self)Run one cycle of the task scheduler engine.
|
setDebugModeEnabled(self, enabled)Show or hide the debug layer.
|
setStartupLayer(self, startupLayer)Set theLayer that will be shown when the all the
resources have been loaded. See Data
|
startServer(self)Start the game server. |
stopServer(self)Stop the game server. |
toggleFullscreen(self)Toggle between fullscreen and windowed mode.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Nov 23 23:40:42 2006 | http://epydoc.sf.net |