State machine instance. More...
#include <state_machine.h>
Data Fields | |
| StateCallback | active_update |
Pointer to the active update function in state_infos | |
| StateInfo * | state_infos |
| Array of StateCallbacks , one entry per state. | |
| unsigned int | num_infos |
Number of elements in the state_infos array. | |
| int | state |
| The current state of the state machine, the offset into state_infos. | |
| bool | registered |
| Flag to determine if statemachine is already running it's active_update function. | |
State machine instance.
Definition at line 48 of file state_machine.h.
| StateCallback active_update |
Pointer to the active update function in state_infos
Definition at line 53 of file state_machine.h.
| unsigned int num_infos |
Number of elements in the state_infos array.
Definition at line 63 of file state_machine.h.
| bool registered |
Flag to determine if statemachine is already running it's active_update function.
Definition at line 73 of file state_machine.h.
| int state |
The current state of the state machine, the offset into state_infos.
Definition at line 68 of file state_machine.h.
| StateInfo* state_infos |
Array of StateCallbacks , one entry per state.
Definition at line 58 of file state_machine.h.