Contains State functions and data to be inherited by all other states. More...
#include <S_State.h>


Public Member Functions | |
| S_State (S_StateManager *stateManager, SDL_Renderer *renderer, C_Vec2 dimensions) | |
| Constructs the State object. More... | |
| virtual | ~S_State () |
| A virtual destructor for the State object. More... | |
| virtual bool | input ()=0 |
| A pure virtual function to handle the user input for use with the State. More... | |
| virtual void | update (float deltaTime)=0 |
| A pure virtual function to update the State to allow the State to run. More... | |
| virtual void | draw ()=0 |
| A pure virtual function to draw to the screen using the renderer. More... | |
Protected Attributes | |
| S_StateManager * | stateManager |
| A pointer to the state manager. More... | |
| SDL_Renderer * | renderer |
| A pointer to the renderer. More... | |
| C_Vec2 | dimensions |
| The screen dimensions. More... | |
Contains State functions and data to be inherited by all other states.
| S_State::S_State | ( | S_StateManager * | stateManager, |
| SDL_Renderer * | renderer, | ||
| C_Vec2 | dimensions | ||
| ) |
Constructs the State object.
| stateManager | A pointer to the StateManager. |
| renderer | A pointer to the renderer. |
| dimensions | The screen dimensions. |
|
virtual |
A virtual destructor for the State object.
|
pure virtual |
A pure virtual function to draw to the screen using the renderer.
Implemented in S_Game, SM_EndGame, SM_MainMenu, SM_Scores, SM_Credits, SM_Help, and S_Splash.
|
pure virtual |
A pure virtual function to handle the user input for use with the State.
Implemented in S_Game, SM_EndGame, SM_MainMenu, SM_Scores, SM_Credits, SM_Help, and S_Splash.
|
pure virtual |
A pure virtual function to update the State to allow the State to run.
| dt | The delta time. |
Implemented in S_Game, SM_EndGame, SM_MainMenu, SM_Scores, SM_Credits, SM_Help, and S_Splash.
|
protected |
The screen dimensions.
|
protected |
A pointer to the renderer.
|
protected |
A pointer to the state manager.
1.8.8