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

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

#include <winLoseState.h>

Inheritance diagram for WinLoseState:
Inheritance graph
Collaboration diagram for WinLoseState:
Collaboration graph

Public Member Functions

 WinLoseState (StateManager *, SDL_Renderer *, bool, int)
 
 ~WinLoseState ()
 
bool HandleSDLEvents ()
 
void Update (float deltaTime)
 
void Draw ()
 
void displayScore ()
 
- 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 WinLoseState object. Creates a WinLoseState object that inherits State.

Constructor & Destructor Documentation

WinLoseState::WinLoseState ( StateManager inStateManager,
SDL_Renderer *  inRenderer,
bool  inWin,
int  inScore 
)

Constructs a WinLoseState object Constructs a WinLoseState object

Parameters
StateManager* a pointer to the StateManager
SDL_Renderer* a pointer to the renderer in use.
boolif the player won or not
intthe players score

Here is the call graph for this function:

WinLoseState::~WinLoseState ( )

De-constructs a WinLoseState object De-constructs the WinLoseState object

Here is the call graph for this function:

Member Function Documentation

void WinLoseState::displayScore ( )

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

Here is the call graph for this function:

Here is the caller graph for this function:

void WinLoseState::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 WinLoseState::HandleSDLEvents ( )
virtual

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

Returns
bool if false then quit WinLoseState

Implements State.

Here is the call graph for this function:

void WinLoseState::Update ( float  deltaTime)
virtual

A function to update the WinLoseState A function to update the WinLoseState to allow the WinLoseState to run

Parameters
floatthe delta time

Implements State.

Here is the call graph for this function:


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