Creates a 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 | |
JAM_Texture * | texture |
JAM_Audio * | music |
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 |
A pointer to the background music.
|
private |
Test Texture.