Creates an EndGame object that inherits State and runs the EndGame screen. More...
#include <EndGame.h>
Public Member Functions | |
EndGame (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music, float score) | |
~EndGame () | |
bool | input () |
void | update (float dt) |
void | draw () |
Public Member Functions inherited from State | |
State (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight) | |
virtual | ~State () |
SDL_Window * | getWindow () |
Private Member Functions | |
void | loadingScreen () |
Private Attributes | |
std::unordered_map < std::string, Object * > | objects |
std::unordered_map < std::string, Shader * > | shaders |
Camera * | camera |
EndGameUI * | userInterface |
Audio * | music |
Additional Inherited Members | |
Protected Attributes inherited from State | |
StateManager * | stateManager |
SDL_Window * | window |
int | screenWidth |
int | screenHeight |
EndGame::EndGame | ( | StateManager * | stateManager, |
SDL_Window * | window, | ||
int | screenWidth, | ||
int | screenHeight, | ||
Audio * | music, | ||
float | score | ||
) |
Constructs a EndGame object.
stateManager | A pointer to the StateManager. |
window | A pointer to the window. |
screenWidth | The screen width. |
screenHeight | The screen height. |
music | A pointer to the background music. |
score | The score from the Game. |
EndGame::~EndGame | ( | ) |
Destructs an EndGame object.
|
virtual |
|
virtual |
|
private |
Draws a LoadingScreen.
|
virtual |
|
private |
The background music
|
private |
The loaded Object files
|
private |
The loaded Shader files