Constructor

new()

Variables

from:Class<FlxFSMState<T>>

The state this transition applies to, or null for global transition, ie. from any state

@:value(false)remove:Bool = false

Used to mark this transition for removal

to:Class<FlxFSMState<T>>

The state this transition leads to

condition:T ‑> Bool

Function used for evaluation. The evaluation function may be overridden, in which case this param may be redundant.

Methods

evaluate(target:T):Bool

If this function returns true, the transition becomes active. Note: you can override this function if you don't want to use functions passed as variables.