- Psykick2D
BehaviorSystem
Controls the behavior of entities. Called during the "update" stage of a frame
new BehaviorSystem(
)
Properties
actionOrder | ARRAY | [] |
Methods
addEntity( )
Add a new Entity to the collection and make it the last one to be updated
entity | Entity |
boolean removeEntity( )
Removes an Entity from the System
entity |
update( )
Updates all of the entities.
Should be redefined in each new instance of a BehaviorSystem
delta | number | Amount of time that's passed since the last update |