View source
class Transition<T>
package flixel.addons.util
import flixel.addons.util.FlxFSM
Available on all platforms
Constructor
Variables
from:Class<FlxFSMState<T>>
The state this transition applies to, or null for global transition, ie. from any state
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.