Creates a GameOver object that inherits State and runs the GameOver state.
More...
#include <GameOver.h>
Creates a GameOver object that inherits State and runs the GameOver state.
- Author
- Jamie Slowgrove
GameOver::GameOver |
( |
JAM_StateManager * |
stateManager, |
|
|
SDL_Renderer * |
renderer, |
|
|
int |
screenWidth, |
|
|
int |
screenHeight, |
|
|
JAM_Audio * |
music |
|
) |
| |
Constructs the GameOver object.
- Parameters
-
stateManager | A pointer to the StateManager. |
renderer | A pointer to the renderer. |
screenWidth | The screen width. |
screenHeight | The screen height. |
bool GameOver::androidInput |
( |
SDL_Event & |
incomingEvent | ) |
|
|
private |
Handles the Android GameOver input.
- Parameters
-
incomingEvent | A reference to the incoming SDL event. |
- Returns
- If false then quit the Game State.
A function to draw to the screen.
Implements JAM_State.
void GameOver::update |
( |
float |
dt | ) |
|
|
virtual |
bool GameOver::windowsInput |
( |
SDL_Event & |
incomingEvent | ) |
|
|
private |
Handles the Windows GameOver input.
- Parameters
-
incomingEvent | A reference to the incoming SDL event. |
- Returns
- If false then quit the Game State.
A pointer to the background music.
The documentation for this class was generated from the following files: