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 () |
![]() | |
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 * | alienDude |
JAM_Texture * | backgroundStars |
JAM_Texture * | forceField |
Background * | starsA |
Background * | starsB |
Player * | player |
std::vector< JAM_ParticleEffect * > | particleEffects |
std::vector< ForceField * > | forceFields |
JAM_Audio * | music |
int | initalLoops |
JAM_Text * | info |
JAM_Button * | button |
JAM_ArrowPad * | arrowPad |
Additional Inherited Members | |
![]() | |
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 alien Texture.
|
private |
The arrow pad.
|
private |
The background stars Texture.
|
private |
The info Button.
|
private |
The force field Texture.
|
private |
A Vector for the ForceFields.
|
private |
The info Text.
|
private |
A number for the initial loops left.
|
private |
A pointer to the background music.
|
private |
A Vector for the ParticleEffect.
|
private |
The first stars background.
|
private |
The second stars background.