Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EndGame Class Reference

Creates an EndGame object that inherits State and runs the EndGame screen. More...

#include <EndGame.h>

Inheritance diagram for EndGame:
Inheritance graph
Collaboration diagram for EndGame:
Collaboration graph

Public Member Functions

 EndGame (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music, float score)
 
 ~EndGame ()
 
bool input ()
 
void update (float dt)
 
void draw ()
 
- Public Member Functions inherited from State
 State (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight)
 
virtual ~State ()
 
SDL_Window * getWindow ()
 

Private Member Functions

void loadingScreen ()
 

Private Attributes

std::unordered_map
< std::string, Object * > 
objects
 
std::unordered_map
< std::string, Shader * > 
shaders
 
Cameracamera
 
EndGameUIuserInterface
 
Audiomusic
 

Additional Inherited Members

- Protected Attributes inherited from State
StateManagerstateManager
 
SDL_Window * window
 
int screenWidth
 
int screenHeight
 

Detailed Description

Creates an EndGame object that inherits State and runs the EndGame screen.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

EndGame::EndGame ( StateManager stateManager,
SDL_Window *  window,
int  screenWidth,
int  screenHeight,
Audio music,
float  score 
)

Constructs a EndGame object.

Parameters
stateManagerA pointer to the StateManager.
windowA pointer to the window.
screenWidthThe screen width.
screenHeightThe screen height.
musicA pointer to the background music.
scoreThe score from the Game.
EndGame::~EndGame ( )

Destructs an EndGame object.

Member Function Documentation

void EndGame::draw ( )
virtual

A function to draw to the screen.

Implements State.

Here is the call graph for this function:

bool EndGame::input ( )
virtual

Handles the EndGame input.

Returns
If false then quit the EndGame State.

Implements State.

Here is the call graph for this function:

void EndGame::loadingScreen ( )
private

Draws a LoadingScreen.

void EndGame::update ( float  dt)
virtual

A function to update the EndGame.

Parameters
dtThe delta time.

Implements State.

Here is the call graph for this function:

Member Data Documentation

Camera* EndGame::camera
private

The Camera for the Help

Audio* EndGame::music
private

The background music

std::unordered_map<std::string, Object*> EndGame::objects
private

The loaded Object files

std::unordered_map<std::string, Shader*> EndGame::shaders
private

The loaded Shader files

EndGameUI* EndGame::userInterface
private

The EndGameUI


The documentation for this class was generated from the following files: