Class Index | File Index

Classes


Class UnitFactory


Defined in: unit-factory.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
UnitFactory(gameEngine)
Class UnitFactory
Method Summary
Method Attributes Method Name and Description
 
addUnitType(type, health, attack, defense, view, movement, range, properties)
 
create(type,, owner,, cell,)
Create a new unit.
Class Detail
UnitFactory(gameEngine)
Class UnitFactory
Author: Youness HAMRI - youness.hamri@gmail.com / duc .....
Parameters:
gameEngine
Method Detail
addUnitType(type, health, attack, defense, view, movement, range, properties)
Parameters:
type
health
attack
defense
view
movement
range
properties

create(type,, owner,, cell,)
Create a new unit.
Parameters:
type,
the type of unit.
owner,
the player who has creating a unit
cell,
the cell that will be occupied by the unit
Returns:
myUnit: the created unit.

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