Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 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"
5 
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 
51  bool input();
52 
58  void update(float deltaTime);
59 
64  void draw();
65 };
~StateManager()
Definition: stateManager.cpp:14
Creates a State object. Creates a State object to be inherited. DISCLAIMER - This code is from my PGG...
Definition: state.h:15
void addState(State *)
Definition: stateManager.cpp:26
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAIMER - This code ...
Definition: stateManager.h:11
std::vector< State * > currentStates
Definition: stateManager.h:15
bool input()
Definition: stateManager.cpp:63
void changeState(State *)
Definition: stateManager.cpp:34
void draw()
Definition: stateManager.cpp:80
void removeLastState()
Definition: stateManager.cpp:52
void update(float deltaTime)
Definition: stateManager.cpp:71
StateManager()
Definition: stateManager.cpp:7