Caseus Tower
 All Classes Namespaces Files Functions Variables
Credits Class Reference

Creates a Credits State. Creates a Credits State that inherits State. More...

#include <credits.h>

Inheritance diagram for Credits:
State

Public Member Functions

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

Entitybutton
 
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 Credits State. Creates a Credits State that inherits State.

Definition at line 13 of file credits.h.

Constructor & Destructor Documentation

Credits::Credits ( StateManager ,
SpriteHandler ,
int  ,
int   
)

Constructs a Credits State

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

A destructor for the Credits State

Member Function Documentation

void Credits::drawSprites ( )
virtual

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

Implements State.

void Credits::drawSpritesWithAlpha ( )
virtual

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

Implements State.

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

A function for updating the Credits 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

Entity* Credits::button
private

The buttons

Definition at line 17 of file credits.h.

Animation* Credits::buttonPress
private

The Animation timer for the button press

Definition at line 23 of file credits.h.

int Credits::exitSprite
private

Definition at line 19 of file credits.h.

bool Credits::pressed
private

boolean for if a button is pressed

Definition at line 21 of file credits.h.


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