#include <states.h>
Data Fields | |
StateFunc | init |
The function called to initalize the state. | |
StateFunc | run |
The function called repeatedly to operate the state. | |
StateFunc | uninit |
The function that uninitalizes a state in preperation for changing states or program termination. |
Definition at line 122 of file states.h.
The function called to initalize the state.
It will be called before the run function. It can be set to NULL if no initalization is required.
Definition at line 129 of file states.h.
Referenced by RunState().
The function called repeatedly to operate the state.
It is expected to capture and respond to events, render graphics, and deal with frame rate issues.
Definition at line 139 of file states.h.
Referenced by RunState().
The function that uninitalizes a state in preperation for changing states or program termination.
It can be set to NULL if no uninitalization is required. If the state's run function ended with a non-recoverable error, its uninitalize function will still be called.
Definition at line 147 of file states.h.
Referenced by RunState().