Creates a State object. Creates a State object to be inherited. DISCLAMER - This is a modified version of my PGG Assignment 1 state class. More...
#include <State.h>
Public Member Functions | |
State (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight) | |
virtual | ~State () |
virtual bool | input ()=0 |
virtual void | update (float dt)=0 |
virtual void | draw ()=0 |
SDL_Window * | getWindow () |
Protected Attributes | |
StateManager * | stateManager |
SDL_Window * | window |
int | screenWidth |
int | screenHeight |
Creates a State object. Creates a State object to be inherited. DISCLAMER - This is a modified version of my PGG Assignment 1 state class.
State::State | ( | StateManager * | stateManager, |
SDL_Window * | window, | ||
int | screenWidth, | ||
int | screenHeight | ||
) |
Constructs a State object.
stateManager | A pointer to the StateManager. |
window | A pointer to the window in use. |
screenWidth | The screen width. |
screenHeight | The screen height. |
|
virtual |
A virtual destructor for the State object.
|
pure virtual |
SDL_Window * State::getWindow | ( | ) |
Getter # Gets the window
|
pure virtual |
|
pure virtual |
|
protected |
The height of the screen
|
protected |
The width of the screen
|
protected |
A pointer to the state manager
|
protected |
The window to display to