Creates an Credits object that inherits State and runs the Help screen. More...
#include <Credits.h>


Public Member Functions | |
| Credits (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music) | |
| ~Credits () | |
| 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 |
| CreditsUI * | userInterface |
| Audio * | music |
Additional Inherited Members | |
Protected Attributes inherited from State | |
| StateManager * | stateManager |
| SDL_Window * | window |
| int | screenWidth |
| int | screenHeight |
| Credits::Credits | ( | StateManager * | stateManager, |
| SDL_Window * | window, | ||
| int | screenWidth, | ||
| int | screenHeight, | ||
| Audio * | music | ||
| ) |
Constructs a Credits 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. |
| Credits::~Credits | ( | ) |
Destructs an Credits object.
|
virtual |
|
virtual |
|
private |
Draws a LoadingScreen.
|
virtual |
|
private |
The background music
|
private |
The loaded Object files
|
private |
The loaded Shader files
1.8.8