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

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

#include <menuState.h>

Inheritance diagram for MenuState:
Inheritance graph
Collaboration diagram for MenuState:
Collaboration graph

Public Member Functions

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

Constructor & Destructor Documentation

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

Constructs a MenuState object Constructs a MenuState object

Parameters
StateManager* a pointer to the StateManager
SDL_Renderer* a pointer to the renderer in use.

Here is the call graph for this function:

MenuState::~MenuState ( )

De-constructs a MenuState object De-constructs the MenuState object

Here is the call graph for this function:

Member Function Documentation

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

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

Returns
bool if false then quit MenuState

Implements State.

Here is the call graph for this function:

void MenuState::Update ( float  deltaTime)
virtual

A function to update the MenuState A function to update the MenuState to allow the MenuState 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: