Saves a State Used by: cStateManager. More...
#include <sState.hpp>
Public Member Functions | |
| sState () | |
| ~sState () | |
Public Attributes | |
| sState * | m_pPrev |
| void(* | m_pFunction )(ePurpose _Purpose) |
Saves a State Used by: cStateManager.
A State consits of a pointer to the previous state and a pointer to a function, which is handles the states logic. The function takes the purpose of the calling as a parameter.
| SPACE::Core::sState::sState | ( | ) | [inline] |
Init the variables value
| SPACE::Core::sState::~sState | ( | ) | [inline] |
Deletes the Previous State, so that every state is going down if something went wrong
| void(* SPACE::Core::sState::m_pFunction)(ePurpose _Purpose) |
the pointer to the function that runs if the state is called
the pointer to the previous State
1.6.3