Defines the sequence of screens, and takes care of persistence.
Definition at line 43 of file ActionEngine.h.
Public Member Functions | |
Lifecycle management | |
ActionEngine (UInt16 numStateDescriptors) SEC_GAME | |
Construct a new ActionEngine. | |
virtual | ~ActionEngine () SEC_GAME=0 |
Destroy the ActionEngine. | |
Control flow | |
virtual void | init () SEC_GAME=0 |
Initialize the ActionEngine and all Screens. | |
virtual Screen * | getCurrentScreen () const SEC_GAME=0 |
Get the currently needed Screen Ownership of the screen is transferred to the caller. | |
virtual Screen * | getNextScreen () SEC_GAME=0 |
Get the next Screen in the sequence of Screens. | |
Persistence | |
virtual UInt16 | getStateDescriptorsVersion () const SEC_GAME=0 |
The version number of the application state. | |
StateDescriptor * | getStateDescriptor (UInt16 index) const SEC_GAME |
Return the nth state descriptor for this ActionEngine. | |
Miscellaneous | |
virtual Boolean | getPreventAutoOff () const SEC_GAME |
Protected Attributes | |
StateDescriptorPtr * | stateDescriptors |
|
Construct a new ActionEngine.
|
|
Destroy the ActionEngine.
|
|
Initialize the ActionEngine and all Screens. Make sure you set the persistent state of the ActionEngine and all Screens to working default values. |
|
Get the currently needed Screen Ownership of the screen is transferred to the caller.
|
|
Get the next Screen in the sequence of Screens. Ownership of the screen is transferred to the caller. |
|
The version number of the application state. This should be increased by 1 every time the application's state descriptor layout changes.
|
|
Return the nth state descriptor for this ActionEngine. Ownership of the descriptor remains with the ActionEngine.
|
|
|
|
Definition at line 114 of file ActionEngine.h. |