Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GameOver Class Reference

Creates a GameOver object that inherits State and runs the GameOver state. More...

#include <GameOver.h>

Inheritance diagram for GameOver:
Inheritance graph
Collaboration diagram for GameOver:
Collaboration graph

Public Member Functions

 GameOver (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight, JAM_Audio *music)
 
 ~GameOver ()
 
bool input ()
 
void update (float dt)
 
void draw ()
 
- Public Member Functions inherited from JAM_State
 JAM_State (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight)
 
virtual ~JAM_State ()
 

Private Member Functions

bool windowsInput (SDL_Event &incomingEvent)
 
bool androidInput (SDL_Event &incomingEvent)
 

Private Attributes

JAM_Texturebackground
 
JAM_Textinfo
 
JAM_Buttonbutton
 
JAM_Audiomusic
 

Additional Inherited Members

- Protected Attributes inherited from JAM_State
JAM_StateManagerstateManager
 
SDL_Renderer * renderer
 
int screenWidth
 
int screenHeight
 

Detailed Description

Creates a GameOver object that inherits State and runs the GameOver state.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

GameOver::GameOver ( JAM_StateManager stateManager,
SDL_Renderer *  renderer,
int  screenWidth,
int  screenHeight,
JAM_Audio music 
)

Constructs the GameOver object.

Parameters
stateManagerA pointer to the StateManager.
rendererA pointer to the renderer.
screenWidthThe screen width.
screenHeightThe screen height.

Here is the call graph for this function:

GameOver::~GameOver ( )

Destructs the GameOver object.

Member Function Documentation

bool GameOver::androidInput ( SDL_Event &  incomingEvent)
private

Handles the Android GameOver input.

Parameters
incomingEventA reference to the incoming SDL event.
Returns
If false then quit the Game State.

Here is the call graph for this function:

Here is the caller graph for this function:

void GameOver::draw ( )
virtual

A function to draw to the screen.

Implements JAM_State.

Here is the call graph for this function:

bool GameOver::input ( )
virtual

Handles the GameOver input.

Returns
If false then quit the GameOver State.

Implements JAM_State.

Here is the call graph for this function:

void GameOver::update ( float  dt)
virtual

A function to update the GameOver to allow the GameOver to run.

Parameters
dtThe delta time.

Implements JAM_State.

Here is the call graph for this function:

bool GameOver::windowsInput ( SDL_Event &  incomingEvent)
private

Handles the Windows GameOver input.

Parameters
incomingEventA reference to the incoming SDL event.
Returns
If false then quit the Game State.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

JAM_Texture* GameOver::background
private

The background Texture.

JAM_Button* GameOver::button
private

The info Button.

JAM_Text* GameOver::info
private

The info Text.

JAM_Audio* GameOver::music
private

A pointer to the background music.


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