A State that contains and runs the Demo.
More...
#include <FlockingDemo.h>
A State that contains and runs the Demo.
◆ FlockingDemo()
FlockingDemo::FlockingDemo |
( |
StateManager * |
stateManager, |
|
|
SDL_Window * |
window |
|
) |
| |
Constructs the State object.
- Parameters
-
stateManager | A pointer to the StateManager. |
window | A pointer to the window in use. |
◆ ~FlockingDemo()
FlockingDemo::~FlockingDemo |
( |
| ) |
|
Destructs the State object.
◆ draw()
void FlockingDemo::draw |
( |
| ) |
|
|
virtual |
A function to draw the State to the screen.
Implements State.
◆ input()
bool FlockingDemo::input |
( |
| ) |
|
|
virtual |
Handles the State input.
- Returns
- If false then quit the State.
Implements State.
◆ update()
void FlockingDemo::update |
( |
| ) |
|
|
virtual |
◆ backgroundMusicID
std::string FlockingDemo::backgroundMusicID |
|
private |
◆ boidSpriteID
std::string FlockingDemo::boidSpriteID |
|
private |
◆ flock
◆ flock3D
◆ help
A boolean for if help should display.
◆ helpID
std::string FlockingDemo::helpID |
|
private |
◆ initialLoop
bool FlockingDemo::initialLoop |
|
private |
◆ UIID
std::string FlockingDemo::UIID |
|
private |
◆ use3D
The documentation for this class was generated from the following files: