Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
Public Member Functions | List of all members
CreditsState Class Reference

Creates a CreditsState object. Creates a CreditsState object that inherits State. More...

#include <creditsState.h>

Inheritance diagram for CreditsState:
Inheritance graph
Collaboration diagram for CreditsState:
Collaboration graph

Public Member Functions

 CreditsState (StateManager *, SDL_Renderer *)
 
 ~CreditsState ()
 
bool HandleSDLEvents ()
 
void Update (float deltaTime)
 
void Draw ()
 
- Public Member Functions inherited from State
 State (StateManager *, SDL_Renderer *)
 
virtual ~State ()
 
std::string GetStateName ()
 

Additional Inherited Members

- Protected Attributes inherited from State
StateManagerstateManager
 
SDL_Renderer * renderer
 
std::string name
 

Detailed Description

Creates a CreditsState object. Creates a CreditsState object that inherits State.

Constructor & Destructor Documentation

CreditsState::CreditsState ( StateManager inStateManager,
SDL_Renderer *  inRenderer 
)

Constructs a CreditsState object Constructs a CreditsState object

Parameters
StateManager* a pointer to the StateManager
SDL_Renderer* a pointer to the renderer in use.
CreditsState::~CreditsState ( )

De-constructs a CreditsState object De-constructs the CreditsState object

Member Function Documentation

void CreditsState::Draw ( )
virtual

A function to draw to the screen A function to draw to the screen using the renderer

Implements State.

Here is the call graph for this function:

bool CreditsState::HandleSDLEvents ( )
virtual

A function to handle the SDL events A function to handle the SDL events for use with the CreditsState

Returns
bool if false then quit CreditsState

Implements State.

Here is the call graph for this function:

void CreditsState::Update ( float  deltaTime)
virtual

A function to update the CreditsState A function to update the CreditsState to allow the CreditsState to run

Parameters
floatthe delta time

Implements State.


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