Creates an Help object that inherits State and runs the Help screen. More...
#include <Help.h>
Public Member Functions | |
Help (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music) | |
~Help () | |
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 |
HelpUI * | userInterface |
Audio * | music |
Additional Inherited Members | |
Protected Attributes inherited from State | |
StateManager * | stateManager |
SDL_Window * | window |
int | screenWidth |
int | screenHeight |
Help::Help | ( | StateManager * | stateManager, |
SDL_Window * | window, | ||
int | screenWidth, | ||
int | screenHeight, | ||
Audio * | music | ||
) |
Constructs a Help 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. |
Help::~Help | ( | ) |
Destructs an Help object.
|
virtual |
|
virtual |
|
private |
Draws a LoadingScreen.
|
virtual |
|
private |
The background music
|
private |
The loaded Object files
|
private |
The loaded Shader files
|
private |
The MainMenuUI