Caseus Tower
 All Classes Namespaces Files Functions Variables
Pause Class Reference

Creates a Pause State. Creates a Pause State that inherits State. More...

#include <pause.h>

Inheritance diagram for Pause:
State

Public Member Functions

 Pause (StateManager *, SpriteHandler *, int, int)
 
 ~Pause ()
 
void update (float, float, float)
 
void drawSprites ()
 
void drawSpritesWithAlpha ()
 
- Public Member Functions inherited from State
 State (StateManager *, SpriteHandler *, int, int)
 
virtual ~State ()
 
std::string GetStateName ()
 
bool runProgram ()
 

Private Attributes

EntityplayButton
 
EntityexitButton
 
int playSprite
 
int exitSprite
 
bool pressed
 
AnimationbuttonPress
 

Additional Inherited Members

- Protected Attributes inherited from State
StateManagerstateManager
 
int screenWidth
 
int screenHeight
 
SpriteHandlersprites
 
std::string name
 
bool runCheck
 

Detailed Description

Creates a Pause State. Creates a Pause State that inherits State.

Definition at line 13 of file pause.h.

Constructor & Destructor Documentation

Pause::Pause ( StateManager ,
SpriteHandler ,
int  ,
int   
)

Constructs a Pause State

Parameters
StateManager* a pointer to the StateManager
SpriteHandler*a pointer to the SpriteHandler.
intthe screen width.
intthe screen height.
Pause::~Pause ( )

A destructor for the Pause State

Member Function Documentation

void Pause::drawSprites ( )
virtual

A function for displaying the Sprite objects which do not use alpha.

Implements State.

void Pause::drawSpritesWithAlpha ( )
virtual

A function for displaying the Sprite objects which do use alpha.

Implements State.

void Pause::update ( float  ,
float  ,
float   
)
virtual

A function for updating the Pause State

Parameters
floatthe delta time
floatthe x touch location
floatthe y touch location
Returns
int the next command the application should do

Implements State.

Member Data Documentation

Animation* Pause::buttonPress
private

The Animation timer for the button press

Definition at line 25 of file pause.h.

Entity* Pause::exitButton
private

Definition at line 18 of file pause.h.

int Pause::exitSprite
private

Definition at line 21 of file pause.h.

Entity* Pause::playButton
private

The buttons

Definition at line 17 of file pause.h.

int Pause::playSprite
private

Definition at line 20 of file pause.h.

bool Pause::pressed
private

boolean for if a button is pressed

Definition at line 23 of file pause.h.


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