Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionQueue

Action Queues

Action queues are part of the Action API and store the list of actions to be executed for an Actor.

Actors implement [[Action.actionQueue]] which can be manipulated by advanced users to adjust the actions currently being executed in the queue.

Hierarchy

  • ActionQueue

Index

Constructors

constructor

Properties

Private _actions

_actions: IAction[] = []

Private _actor

_actor: any

Private _completedActions

_completedActions: IAction[] = []

Private _currentAction

_currentAction: IAction

Methods

add

  • Parameters

    Returns void

clearActions

  • clearActions(): void
  • Returns void

getActions

  • Returns IAction[]

hasNext

  • hasNext(): boolean
  • Returns boolean

remove

  • Parameters

    Returns void

reset

  • reset(): void
  • Returns void

update

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void