ActionQueue
Index
Constructors
Methods
Constructors
constructor
Parameters
entity: Entity<any>
Returns ActionQueue
Methods
publicadd
Add an action to the sequence
Parameters
action: Action
Returns void
publicclearActions
Removes all actions from this sequence
Returns void
publicgetActions
Returns Action[]
The total list of actions in this sequence complete or not
publichasNext
Returns boolean
true
if there are more actions to process in the sequence
publicisComplete
Returns boolean
true
if the current sequence of actions is done
publicremove
Remove an action by reference from the sequence
Parameters
action: Action
Returns void
publicreset
Resets the sequence of actions, this is used to restart a sequence from the beginning
Returns void
publicupdate
Update the queue which updates actions and handles completing actions
Parameters
elapsedMs: number
Returns void
Action Queues represent an ordered sequence of actions
Action queues are part of the
Action API
and store the list of actions to be executed for an Actor.Actors implement Actor.actions which can be manipulated by advanced users to adjust the actions currently being executed in the queue.