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.