|
Vigilante Game Framework
1.0.0.8
A 2D/3D C++ Game Framework using SFML.
|
Manager class for VStates, allows switching current states or adding states to a stack. More...
#include <VState.h>
Public Member Functions | |
| VState * | CurrentState () |
| Gets current state. | |
| void | ChangeState (VState *state) |
| void | PushState (VState *state) |
| void | PopState () |
| Pops the top state off the stack. | |
| void | Clear () |
| Clears all states from the stack. | |
Protected Member Functions | |
| VStateManager (VStateManager const &)=delete | |
| void | operator= (VStateManager const &)=delete |
Protected Attributes | |
| std::vector< VState * > | states |
| List of VStates in the manager. | |
Manager class for VStates, allows switching current states or adding states to a stack.
| void VStateManager::ChangeState | ( | VState * | state | ) |
Change current top state to a new state.
| state | the VState to change to. |
| void VStateManager::PushState | ( | VState * | state | ) |
Pushes new state to the top of the stack.
| state | the VState to add to the stack. |
1.8.14