LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
gamestate.h
1 #ifndef GAMESTATE_H
2 #define GAMESTATE_H
3 
4 #include <memory>
5 #include "external/json/json.h"
6 #include "state.h"
7 #include "timer.h"
8 #include "map.h"
9 
11 
14 class GameState : public State{
15 public:
16  GameState();
17  ~GameState();
23  std::string Run();
30  Json::Value Save();
37  void Load(Json::Value val);
38 
39 protected:
46  //void RenderThread();
52  //void PhysicsThread();
54  void Init();
56  void Free();
57 
58 private:
59  std::shared_ptr<Map> mMap;
60  std::shared_ptr<TileSet> mTileSet;
61 
62 };
63 
64 #endif