Caseus Tower
 All Classes Namespaces Files Functions Variables
stateManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include "state.h"
12 {
13 private:
15  std::vector<State*> currentStates;
16 public:
20  StateManager();
21 
25  ~StateManager();
26 
32  void addState(State*);
33 
39  void changeState(State*);
40 
44  void removeLastState();
45 
53  void update(float, float, float);
54 
59  void drawSprites();
60 
65  void drawSpritesWithAlpha();
66 
71  std::string getName();
72 
77  bool runProgram();
78 };
void update(float, float, float)
Creates an State object Creates an State object with virtual functions and the SpriteHandler * and wi...
Definition: state.h:12
void addState(State *)
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is a m...
Definition: stateManager.h:11
void drawSpritesWithAlpha()
std::vector< State * > currentStates
Definition: stateManager.h:15
void changeState(State *)
std::string getName()
bool runProgram()
void drawSprites()
void removeLastState()