Creates an Game object that inherits State and runs the Game. More...
#include <Game.h>
Public Member Functions | |
Game (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight) | |
~Game () | |
bool | input () |
void | update (float dt) |
void | draw () |
Public Member Functions inherited from JAM_State | |
JAM_State (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight) | |
virtual | ~JAM_State () |
Private Member Functions | |
bool | windowsInput (SDL_Event &incomingEvent) |
bool | androidInput (SDL_Event &incomingEvent) |
Private Attributes | |
std::vector< JAM_Button * > | buttons |
JAM_Audio * | music |
JAM_Audio * | soundEffect |
bool | playing |
std::vector< JAM_Text * > | text |
Additional Inherited Members | |
Protected Attributes inherited from JAM_State | |
JAM_StateManager * | stateManager |
SDL_Renderer * | renderer |
int | screenWidth |
int | screenHeight |
Game::Game | ( | JAM_StateManager * | stateManager, |
SDL_Renderer * | renderer, | ||
int | screenWidth, | ||
int | screenHeight | ||
) |
Constructs the Game object.
stateManager | A pointer to the StateManager. |
renderer | A pointer to the renderer. |
screenWidth | The screen width. |
screenHeight | The screen height. |
Game::~Game | ( | ) |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
The Buttons.
|
private |
A pointer to the background music.
|
private |
A boolean value for if the music is playing.
|
private |
A pointer to the sound effect.
|
private |
The Text.