Class Index | File Index

Classes


Class GameFactory


Defined in: game-factory.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
GameFactory(gameEngine)
Class GameFactory
Method Summary
Method Attributes Method Name and Description
 
Create a new game.
 
Set the game's configuration.
Class Detail
GameFactory(gameEngine)
Class GameFactory
Parameters:
gameEngine
Method Detail
create()
Create a new game.
Parameters:
id.
A game's identity.
Returns:
myGame. The created game.

setConfig()
Set the game's configuration.
Parameters:
nbMaxPlayers.
A maximum number of game players .
nbMaxTurns.
A maximum number of game turns. Note that we consider that one games'turn is done if each player has passed his turn.
nbMaxTurns.
A turn duration of each player's turn.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Apr 05 2011 21:22:01 GMT+0200 (CEST)