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
PauseState Class Reference

Creates an pause object that inherits State and runs the pause state. More...

#include <Pause.h>

Inheritance diagram for PauseState:
Inheritance graph
Collaboration diagram for PauseState:
Collaboration graph

Public Member Functions

 PauseState (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight, JAM_Audio *music)
 
 ~PauseState ()
 
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 an pause object that inherits State and runs the pause state.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

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

Constructs the PauseState 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:

PauseState::~PauseState ( )

Destructs the PauseState object.

Member Function Documentation

bool PauseState::androidInput ( SDL_Event &  incomingEvent)
private

Handles the Android PauseState 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 PauseState::draw ( )
virtual

A function to draw to the screen.

Implements JAM_State.

Here is the call graph for this function:

bool PauseState::input ( )
virtual

Handles the PauseState input.

Returns
If false then quit the pause State.

Implements JAM_State.

Here is the call graph for this function:

void PauseState::update ( float  dt)
virtual

A function to update the pause state to allow the PauseState to run.

Parameters
dtThe delta time.

Implements JAM_State.

Here is the call graph for this function:

bool PauseState::windowsInput ( SDL_Event &  incomingEvent)
private

Handles the Windows PauseState 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* PauseState::background
private

The background Texture.

JAM_Button* PauseState::button
private

The info Button.

JAM_Text* PauseState::info
private

The info Text.

JAM_Audio* PauseState::music
private

A pointer to the background music.


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