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

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

#include <helpState.h>

Inheritance diagram for HelpState:
Inheritance graph
Collaboration diagram for HelpState:
Collaboration graph

Public Member Functions

 HelpState (StateManager *, SDL_Renderer *)
 
 ~HelpState ()
 
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 HelpState object. Creates a HelpState object that inherits State.

Constructor & Destructor Documentation

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

Constructs a HelpState object Constructs a HelpState object

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

De-constructs a HelpState object De-constructs the HelpState object

Member Function Documentation

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

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

Returns
bool if false then quit HelpState

Implements State.

Here is the call graph for this function:

void HelpState::Update ( float  deltaTime)
virtual

A function to update the HelpState A function to update the HelpState to allow the HelpState to run

Parameters
floatthe delta time

Implements State.


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