bool input()
Handles the user input for the current State on the top of the stack.
Definition: S_StateManager.cpp:44
void draw()
Draws the current States.
Definition: S_StateManager.cpp:54
Contains State functions and data to be inherited by all other states.
Definition: S_State.h:14
void removeLastState()
Removes the last State from the vector.
Definition: S_StateManager.cpp:36
void addState(S_State *state)
Adds a new state to the current stack of states.
Definition: S_StateManager.cpp:16
~S_StateManager()
Destructs the StateManager object.
Definition: S_StateManager.cpp:7
void changeState(S_State *state)
Changes the current State to a new State.
Definition: S_StateManager.cpp:22
Handles the functions for all State objects.
Definition: S_StateManager.h:11
void update(float dt)
Updates the current State on the top of the stack.
Definition: S_StateManager.cpp:49
S_StateManager()
Constructs the StateManager object.
Definition: S_StateManager.cpp:3
std::vector< S_State * > currentStates
The current states that are in use.
Definition: S_StateManager.h:60