Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
stateManager.h
1 #pragma once
2 #ifndef STATEMANAGER_H
3 #define STATEMANAGER_H
4 
5 #include <vector>
6 #include "state.h"
7 
14 {
15 private:
16  /*the current states that are in use*/
17  std::vector<State*> currentStates;
18 public:
23  StateManager();
24 
29  ~StateManager();
30 
36  void AddState(State*);
37 
43  void ChangeState(State*);
44 
49  void RemoveLastState();
50 
56  bool HandleSDLEvents();
57 
63  void Update(float deltaTime);
64 
69  void Draw();
70 
76  std::string getName();
77 };
78 #endif
~StateManager()
Definition: stateManager.cpp:15
Creates a State object. Creates a State object to be inherited. Made using information from http://bl...
Definition: state.h:17
void AddState(State *)
Definition: stateManager.cpp:27
void ChangeState(State *)
Definition: stateManager.cpp:35
Creates a State manager object. Creates a State manager object to be inherited. Made using informatio...
Definition: stateManager.h:13
std::string getName()
Definition: stateManager.cpp:93
void Draw()
Definition: stateManager.cpp:81
void RemoveLastState()
Definition: stateManager.cpp:53
bool HandleSDLEvents()
Definition: stateManager.cpp:64
void Update(float deltaTime)
Definition: stateManager.cpp:72
StateManager()
Definition: stateManager.cpp:8