This class manages all the states. More...
#include <cStateManager.hpp>
Public Member Functions | |
| bool | Push (void(*_pFunction)(ePurpose _Purpose)) |
| bool | Pop () |
| bool | Clear () |
| bool | Process () |
This class manages all the states.
The statemanager is like a stack. You can "Push" a state into it and this state is going to be executed. You can process the function and "Pop" a state. Delete will be done like this: The last pushed state will be deleted.
| bool cStateManager::Clear | ( | ) |
Deletes every state
| bool cStateManager::Pop | ( | ) |
Deletes the last added state
| bool cStateManager::Process | ( | ) |
Runs the states function. The purpose is "RUN_PURPOSE".
| bool cStateManager::Push | ( | void(*)(ePurpose _Purpose) | _pFunction | ) |
Puts a new sState into the "State Stack"
| (*_pFunction) | The function of the state |
1.6.3