The UserFiniteStateMachine.h file, contains the application for the finite state machine. The general decalaration for a certain state is:
Finite state "START" is the only state you must declare. This is the start state of the FSM. Phase actions and transisition depend on your application. When no extra functionallity is declared, the FSM will only run in the START state. When entering or leaving a certain state, you can code some specific functionallity. This code is executed just one time in this state depending on entering or leaving the specific state. See above example for the EnterState/ExitState.
Always starting with an IF statement with the name of the finite state. Then program the phase actions and the conditions for a transit to another state. Check the example, it is self documenting!
Click here for an example.