Caseus Tower
 All Classes Namespaces Files Functions Variables
state.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "spriteHandler.h"
4 
6 class StateManager;
7 
12 class State
13 {
14 protected:
15  /*A pointer to the state manager*/
20  /*the pointer to the SpriteHandler*/
22  /*The name of the State*/
23  std::string name;
24  /*Should the program run*/
25  bool runCheck;
26 public:
34  State(StateManager *, SpriteHandler*, int, int);
35 
39  virtual ~State();
40 
47  virtual void update(float, float, float) = 0;
48 
52  virtual void drawSprites() = 0;
53 
57  virtual void drawSpritesWithAlpha() = 0;
58 
63  std::string GetStateName();
64 
69  bool runProgram();
70 };
71 
virtual void update(float, float, float)=0
Creates an State object Creates an State object with virtual functions and the SpriteHandler * and wi...
Definition: state.h:12
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is a m...
Definition: stateManager.h:11
StateManager * stateManager
Definition: state.h:16
State(StateManager *, SpriteHandler *, int, int)
int screenHeight
Definition: state.h:19
std::string name
Definition: state.h:23
virtual void drawSprites()=0
Creates an SpriteHandler object Creates an SpriteHandler object to deal with all of the applications ...
Definition: spriteHandler.h:12
SpriteHandler * sprites
Definition: state.h:21
virtual ~State()
bool runCheck
Definition: state.h:25
int screenWidth
Definition: state.h:18
virtual void drawSpritesWithAlpha()=0
std::string GetStateName()
bool runProgram()