Class Index | File Index

Classes


Class GameEngine


Defined in: game-engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Class GameEngine
Method Summary
Method Attributes Method Name and Description
 
addListener(event, callback)
Add a event listener
 
init()
Initialize the GameEngine, instanciate tools.
 
Invalidate the data, forcing to redraw the game.
 
 
 
 
Remove a event listener
 
Start the GameEngine.
 
trigger(event)
Call a event
Class Detail
GameEngine()
Class GameEngine
Author: Adrian Gaudebert - adrian@gaudebert.fr.
Method Detail
addListener(event, callback)
Add a event listener
Parameters:
event
Name of event
callback
Nam of function which listens this event
Returns:
this

init()
Initialize the GameEngine, instanciate tools.
Returns:
this

invalidate()
Invalidate the data, forcing to redraw the game.
Returns:
this

joinGame()

onAuthenticationConfirm(id, valid)
Parameters:
id
valid

onAuthenticationQuery()

removeListener(event)
Remove a event listener
Parameters:
event
Name of event

start()
Start the GameEngine.
Returns:
this

trigger(event)
Call a event
Parameters:
event
Name of event
Returns:
this

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Feb 21 2011 17:31:11 GMT+0100 (CET)