Class Index | File Index

Classes


Class PlayerFactory


Defined in: player-factory.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
PlayerFactory(gameEngine)
Class PlayerFactory
Method Summary
Method Attributes Method Name and Description
 
create(id,, name,, startPoint,)
Create a new player with attributs.
 
createFromUser(user, startPoint)
Create a player from a user requesting to join games
Class Detail
PlayerFactory(gameEngine)
Class PlayerFactory
Parameters:
gameEngine
Method Detail
create(id,, name,, startPoint,)
Create a new player with attributs.
Parameters:
id,
the player identity,
name,
the player name,
startPoint,
coordinates of the cell that will host its unit.
Returns:
myPlayer, the created player.

createFromUser(user, startPoint)
Create a player from a user requesting to join games
Parameters:
user
startPoint
Returns:
this. the created player.

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