A generic FSM State implementation. Extend this class to create new states.

Constructor

new()

Methods

enter(owner:T, fsm:FlxFSM<T>):Void

Called when state becomes active.

Parameters:

owner

The object the state controls

fsm

The FSM instance this state belongs to. Used for changing the state to another.

exit(owner:T):Void

Called when the state becomes inactive.

Parameters:

owner

The object the state controls

update(elapsed:Float, owner:T, fsm:FlxFSM<T>):Void

Called every update loop.

Parameters:

owner

The object the state controls

fsm

The FSM instance this state belongs to. Used for changing the state to another.