Caseus Tower
 All Classes Namespaces Files Functions Variables
lose.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "state.h"
4 #include "stateManager.h"
5 #include "spriteHandler.h"
6 #include "entity.h"
7 #include "animation.h"
8 #include "audio.h"
9 
14 class Lose : public State
15 {
16 private:
23  /*The current index of the buttons*/
27  bool pressed;
31  int score;
32 
36  void displayScore();
37 
38 public:
47  Lose(StateManager *, SpriteHandler*, int, int, int);
48 
52  ~Lose();
53 
61  void update(float, float, float);
62 
66  void drawSprites();
67 
71  void drawSpritesWithAlpha();
72 };
Creates an Animation object Creates an Animation object to handle the timing of when an Animation sho...
Definition: animation.h:8
int playSprite
Definition: lose.h:24
Creates an State object Creates an State object with virtual functions and the SpriteHandler * and wi...
Definition: state.h:12
void drawSpritesWithAlpha()
Lose(StateManager *, SpriteHandler *, int, int, int)
bool pressed
Definition: lose.h:27
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is a m...
Definition: stateManager.h:11
int score
Definition: lose.h:31
Audio * lose
Definition: lose.h:19
void drawSprites()
Entity * exitButton
Definition: lose.h:22
Animation * buttonPress
Definition: lose.h:29
Creates an Entity object Creates an Entity object with all the information about the Entity...
Definition: entity.h:7
int exitSprite
Definition: lose.h:25
void update(float, float, float)
Creates a Lose State. Creates a Lose State that inherits State.
Definition: lose.h:14
Audio * music
Definition: lose.h:18
Creates an SpriteHandler object Creates an SpriteHandler object to deal with all of the applications ...
Definition: spriteHandler.h:12
Entity * playButton
Definition: lose.h:21
void displayScore()
Creates a Audio object to handle the SDL_Mixer.
Definition: audio.h:10