LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
statemanager.h
1 #ifndef STATEMANAGER_H
2 #define STATEMANAGER_H
3 
4 #include <vector>
5 #include <string>
6 #include <memory>
7 #include "external/json/json.h"
8 #include "state.h"
9 
11 
16 class StateManager {
17 public:
21  static void InitIntro();
26  static void RunState(std::string name);
31  static std::shared_ptr<State> GetActiveState();
36  static void LoadState(std::string name);
41  static void SaveState(std::string name);
46  static void ChangeScene(std::string scene);
47 
48 private:
49  static std::shared_ptr<State> mActiveState;
50  const static std::string mStatesDir;
51 };
52 
53 #endif