Creates a Game object that inherits State Creates a Game object that inherits State and runs the Game.
More...
#include <game.h>
Creates a Game object that inherits State Creates a Game object that inherits State and runs the Game.
| Game::Game |
( |
StateManager * |
inStateManager, |
|
|
SDL_Renderer * |
inRenderer, |
|
|
int |
inWidth, |
|
|
int |
inHeight |
|
) |
| |
Constructs a Game object
- Parameters
-
| StateManager | * a pointer to the StateManager |
| SDL_Renderer | * a pointer to the renderer |
| int | the screen width |
| int | the screen height |
A function to draw to the screen
Implements State.
A function to draw the text
| void Game::update |
( |
float |
deltaTime | ) |
|
|
virtual |
A function to update the Game A function to update the Game to allow the Game to run
- Parameters
-
Implements State.
| bool Game::showCollisions |
|
private |
| std::vector<Text *> Game::text |
|
private |
The documentation for this class was generated from the following files: