Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
StateManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <iostream>
5 #include "State.h"
6 
14 {
15 private:
17  std::vector<State*> currentStates;
18 
19 public:
23  StateManager();
24 
28  ~StateManager();
29 
34  void addState(State* state);
35 
40  void changeState(State* state);
41 
45  void removeLastState();
46 
52  bool input();
53 
59  void update(float dt);
60 
65  void draw();
66 };
~StateManager()
Definition: StateManager.cpp:14
Creates a State object. Creates a State object to be inherited. DISCLAMER - This is a modified versio...
Definition: State.h:16
void addState(State *state)
Definition: StateManager.cpp:26
void changeState(State *state)
Definition: StateManager.cpp:34
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is my ...
Definition: StateManager.h:13
std::vector< State * > currentStates
Definition: StateManager.h:17
bool input()
Definition: StateManager.cpp:63
void draw()
Definition: StateManager.cpp:80
void update(float dt)
Definition: StateManager.cpp:71
void removeLastState()
Definition: StateManager.cpp:52
StateManager()
Definition: StateManager.cpp:7