ActionController class

A class the controls the playback of actions. To play back an action it is passed to the ActionController's run method. The ActionController itself is typically a property of a Node and powered by the SpriteBox.

Constructors

ActionController()
Creates a new ActionController. However, for most uses a reference to an ActionController is acquired through the Node.actions property.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

run(Action action, [ Object tag ]) → void
Runs an action, can optionally be passed a tag. The tag can be used to reference the action or a set of actions with the same tag. [...]
step(double dt) → void
Steps the action forward by the specified time, typically there is no need to directly call this method.
stop(Action action) → void
Stops an action and removes it from the controller. [...]
stopAll() → void
Stops all actions currently being run by the controller and removes them. [...]
stopWithTag(Object tag) → void
Stops all actions with the specified tag and removes them from the controller. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited