Caseus Tower
 All Classes Namespaces Files Functions Variables
Lose Class Reference

Creates a Lose State. Creates a Lose State that inherits State. More...

#include <lose.h>

Inheritance diagram for Lose:
State

Public Member Functions

 Lose (StateManager *, SpriteHandler *, int, int, int)
 
 ~Lose ()
 
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 Member Functions

void displayScore ()
 

Private Attributes

Audiomusic
 
Audiolose
 
EntityplayButton
 
EntityexitButton
 
int playSprite
 
int exitSprite
 
bool pressed
 
AnimationbuttonPress
 
int score
 

Additional Inherited Members

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

Detailed Description

Creates a Lose State. Creates a Lose State that inherits State.

Definition at line 14 of file lose.h.

Constructor & Destructor Documentation

Lose::Lose ( StateManager ,
SpriteHandler ,
int  ,
int  ,
int   
)

Constructs a Lose State

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

A destructor for the Lose State

Member Function Documentation

void Lose::displayScore ( )
private

Draws the score to the screen

void Lose::drawSprites ( )
virtual

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

Implements State.

void Lose::drawSpritesWithAlpha ( )
virtual

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

Implements State.

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

A function for updating the Lose 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* Lose::buttonPress
private

The Animation timer for the button press

Definition at line 29 of file lose.h.

Entity* Lose::exitButton
private

Definition at line 22 of file lose.h.

int Lose::exitSprite
private

Definition at line 25 of file lose.h.

Audio* Lose::lose
private

Definition at line 19 of file lose.h.

Audio* Lose::music
private

Audio

Definition at line 18 of file lose.h.

Entity* Lose::playButton
private

The buttons

Definition at line 21 of file lose.h.

int Lose::playSprite
private

Definition at line 24 of file lose.h.

bool Lose::pressed
private

boolean for if a button is pressed

Definition at line 27 of file lose.h.

int Lose::score
private

the last score

Definition at line 31 of file lose.h.


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