Functions | |
| State * | allocateState (void *parent, const char *name, StateMachine *stateMachine) |
| This allocate a new state and make it child of another state, a pointer on the new state is returned. | |
| StateMachine * | allocStateMachine (const char *name, const char *dbgPref) |
| Allocate a new state machine. | |
| ParallelState * | allocateParallelState (void *parent, unsigned short int nbChildStates, StateMachine *stateMachine, const char *name) |
| Allocate a new ParallelState. | |
| void | freeStateMachine (StateMachine *stateMachine) |
| This free everything that have been allocated for a state machine including childs states. | |
| ParallelState * allocateParallelState | ( | void * | parent, | |
| unsigned short int | nbChildStates, | |||
| StateMachine * | stateMachine, | |||
| const char * | name | |||
| ) |
Allocate a new ParallelState.
| parent | Another state, stateMachine or parallelState already allocated that will become the parent of the new ParallelState. | |
| nbChildStates | Exact number of child states that will be entered simultaneously. | |
| stateMachine | A valid pointer on the associated state machine. | |
| name | An optional name for the parallel state, helpful while debugging. |
| State * allocateState | ( | void * | parent, | |
| const char * | name, | |||
| StateMachine * | stateMachine | |||
| ) |
This allocate a new state and make it child of another state, a pointer on the new state is returned.
| parent | Another state, stateMachine or parallelState already allocated that will become the parent of the new state. | |
| name | An optional name for the state, helpfull while debugging. | |
| stateMachine | A pointer on the associated state machine. (usefull only if parent is a Parallel state). |
| StateMachine * allocStateMachine | ( | const char * | name, | |
| const char * | dbgPref | |||
| ) |
Allocate a new state machine.
| name | The name of the state machine. | |
| dbgPref | A prefix that will be displayed before any debug output. |
| void freeStateMachine | ( | StateMachine * | stateMachine | ) |
This free everything that have been allocated for a state machine including childs states.
| stateMachine | A pointer on the state machine that should be freed. |
1.5.8