Creates an State object Creates an State object with virtual functions and the SpriteHandler * and width and height variables.
More...
#include <state.h>
Creates an State object Creates an State object with virtual functions and the SpriteHandler * and width and height variables.
Definition at line 12 of file state.h.
Constructs a State object
- Parameters
-
virtual State::~State |
( |
| ) |
|
|
virtual |
A virtual destructor for the State object
virtual void State::drawSprites |
( |
| ) |
|
|
pure virtual |
A pure virtual function for displaying the Sprite objects which do not use alpha.
Implemented in Game, Lose, Menu, Pause, and Credits.
virtual void State::drawSpritesWithAlpha |
( |
| ) |
|
|
pure virtual |
A pure virtual function for displaying the Sprite objects which do use alpha.
Implemented in Game, Lose, Menu, Pause, and Credits.
std::string State::GetStateName |
( |
| ) |
|
Getter # State name
- Returns
- std::string the name of the State.
bool State::runProgram |
( |
| ) |
|
Getter # runCheck
- Returns
- bool if the program should run.
virtual void State::update |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
| |
|
pure virtual |
A pure virtual function for updating the State object
- Parameters
-
float | the delta time |
float | the x touch location |
float | the y touch location |
Implemented in Game, Lose, Menu, Pause, and Credits.
the screen dimensions
Definition at line 18 of file state.h.
The documentation for this class was generated from the following file: