LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
editorstate.h
1 #ifndef EDITORSTATE_H
2 #define EDITORSTATE_H
3 
4 #include <memory>
5 #include <string>
6 #include "external/json/json.h"
7 #include "state.h"
8 #include "timer.h"
9 #include "mapeditor.h"
10 #include "tilebar.h"
11 #include "tileset.h"
12 
14 
18 class EditorState : public State{
19 public:
20  EditorState();
21  ~EditorState();
26  std::string Run();
33  Json::Value Save();
39  void Load(Json::Value val);
40 
41 protected:
48  //void RenderThread();
54  //void PhysicsThread();
56  void Init();
58  void Free();
59 
60 private:
61  std::shared_ptr<MapEditor> mMapEditor;
62  std::shared_ptr<TileSet> mTileSet;
63  //So we can get the tilebar into the gameobjecteditor
64  //Better way?
65  TileBar* mTileBar;
66 };
67 
68 #endif