Class: GameObjectSet

GameObjectSet

new GameObjectSet() → {GameObjectSet}

Default Constructor

Support for working with a set of GameObjects

Source:
Returns:
New instance of GameObjectSet
Type
GameObjectSet

Methods

addToSet(obj) → {void}

Add GameObject to this GameObjectSet
Parameters:
Name Type Description
obj GameObject to add to this GameObjectSet
Source:
Returns:
Type
void

draw(aCamera) → {undefined}

Draw function called by GameLoop calls all GameObject's in GameObjectSet
Parameters:
Name Type Description
aCamera type
Source:
Returns:
Type
undefined

getObjectAt(index) → {GameObject}

Return the GameObject at index
Parameters:
Name Type Description
index Number of GameObject to return
Source:
Returns:
Type
GameObject

moveToLast(obj) → {void}

Move GameObject to end of GameObjectSet
Parameters:
Name Type Description
obj GameObjec to move to end of GameObjectSet
Source:
Returns:
Type
void

removeFromSet(obj) → {void}

Remove GameObject from GameObjectSet
Parameters:
Name Type Description
obj GameObject to remove from GameObjectSet
Source:
Returns:
Type
void

size() → {Number}

Return the count of GameObjects in set
Source:
Returns:
count of GameObjects in set
Type
Number

update() → {void}

Update function called by GameLoop calls all GameObject's in GameObjectSet
Source:
Returns:
Type
void