Creates a GameState object. Creates a GameState object that inherits State.
More...
#include <gameState.h>
|
StateManager * | stateManager |
|
SDL_Renderer * | renderer |
|
std::string | name |
|
Creates a GameState object. Creates a GameState object that inherits State.
GameState::GameState |
( |
StateManager * |
inStateManager, |
|
|
SDL_Renderer * |
inRenderer |
|
) |
| |
GameState::~GameState |
( |
| ) |
|
void GameState::displayScore |
( |
| ) |
|
A function to draw the score to the screen A function to draw the score to the screen using the renderer
A function to draw to the screen A function to draw to the screen using the renderer
Implements State.
bool GameState::HandleSDLEvents |
( |
| ) |
|
|
virtual |
A function to handle the SDL events A function to handle the SDL events for use with the GameState
- Returns
- bool if false then quit GameState
Implements State.
void GameState::Update |
( |
float |
deltaTime | ) |
|
|
virtual |
void GameState::updateScene |
( |
float |
velocity, |
|
|
bool |
moveable |
|
) |
| |
A function to update the entire scene Updates the scenes velocity using the inputed velocity
- Parameters
-
float | the new velocity |
bool | if moveable |
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/gameState.h
- PGGAssignment1SDL/gameState.cpp