diff options
Diffstat (limited to 'tools/mapedit/src/map.h')
-rw-r--r-- | tools/mapedit/src/map.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mapedit/src/map.h b/tools/mapedit/src/map.h index 16bbb4c..a2b9cb8 100644 --- a/tools/mapedit/src/map.h +++ b/tools/mapedit/src/map.h | |||
@@ -8,6 +8,8 @@ | |||
8 | #include "object.h" | 8 | #include "object.h" |
9 | #include <memory> | 9 | #include <memory> |
10 | 10 | ||
11 | class MapeditFrame; | ||
12 | |||
11 | const int TILE_WIDTH = 8; | 13 | const int TILE_WIDTH = 8; |
12 | const int TILE_HEIGHT = 8; | 14 | const int TILE_HEIGHT = 8; |
13 | const int GAME_WIDTH = 320; | 15 | const int GAME_WIDTH = 320; |
@@ -72,8 +74,13 @@ class Map { | |||
72 | const std::list<std::shared_ptr<MapObjectEntry>>& getObjects() const; | 74 | const std::list<std::shared_ptr<MapObjectEntry>>& getObjects() const; |
73 | void addObject(std::shared_ptr<MapObjectEntry>& obj); | 75 | void addObject(std::shared_ptr<MapObjectEntry>& obj); |
74 | void removeObject(std::shared_ptr<MapObjectEntry>& obj); | 76 | void removeObject(std::shared_ptr<MapObjectEntry>& obj); |
77 | bool getDirty() const; | ||
78 | |||
79 | MapeditFrame* frame; | ||
75 | 80 | ||
76 | private: | 81 | private: |
82 | void setDirty(bool dirty); | ||
83 | |||
77 | std::list<std::shared_ptr<MapObjectEntry>> objects; | 84 | std::list<std::shared_ptr<MapObjectEntry>> objects; |
78 | int* mapdata; | 85 | int* mapdata; |
79 | std::string title; | 86 | std::string title; |