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 | |
JAM_Audio * | music |
JAM_Flocking * | flocking |
JAM_Texture * | boidTexture |
std::vector< JAM_Text * > | text |
int | applyRule1 |
int | applyRule2 |
int | applyRule3 |
int | current |
std::vector< JAM_Button * > | buttons |
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 |
|
private |
|
private |
|
private |
A pointer for the boids texture.
|
private |
The Buttons.
|
private |
|
private |
A pointer to a Flocking object.
|
private |
A pointer to the background music.
|
private |
The Text.