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
Credits Class Reference

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

#include <Credits.h>

Inheritance diagram for Credits:
Inheritance graph
Collaboration diagram for Credits:
Collaboration graph

Public Member Functions

 Credits (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music)
 
 ~Credits ()
 
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
 
CreditsUIuserInterface
 
Audiomusic
 

Additional Inherited Members

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

Detailed Description

Creates an Credits object that inherits State and runs the Help screen.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

Credits::Credits ( StateManager stateManager,
SDL_Window *  window,
int  screenWidth,
int  screenHeight,
Audio music 
)

Constructs a Credits object.

Parameters
stateManagerA pointer to the StateManager.
windowA pointer to the window.
screenWidthThe screen width.
screenHeightThe screen height.
musicA pointer to the background music.
Credits::~Credits ( )

Destructs an Credits object.

Member Function Documentation

void Credits::draw ( )
virtual

A function to draw to the screen.

Implements State.

Here is the call graph for this function:

bool Credits::input ( )
virtual

Handles the Credits input.

Returns
If false then quit the Credits State.

Implements State.

Here is the call graph for this function:

void Credits::loadingScreen ( )
private

Draws a LoadingScreen.

void Credits::update ( float  dt)
virtual

A function to update the Credits.

Parameters
dtThe delta time.

Implements State.

Here is the call graph for this function:

Member Data Documentation

Camera* Credits::camera
private

The Camera for the Credits

Audio* Credits::music
private

The background music

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

The loaded Object files

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

The loaded Shader files

CreditsUI* Credits::userInterface
private

The CreditsUI


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