diff options
Diffstat (limited to 'src/map.h')
| -rw-r--r-- | src/map.h | 3 |
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/map.h b/src/map.h index fa2edcc..a562bec 100644 --- a/src/map.h +++ b/src/map.h | |||
| @@ -25,6 +25,8 @@ class Map { | |||
| 25 | void setLeftMap(const Map* m); | 25 | void setLeftMap(const Map* m); |
| 26 | void setRightMap(const Map* m); | 26 | void setRightMap(const Map* m); |
| 27 | void createEntities(std::list<std::shared_ptr<Entity>>& entities) const; | 27 | void createEntities(std::list<std::shared_ptr<Entity>>& entities) const; |
| 28 | bool operator==(const Map& other) const; | ||
| 29 | bool operator!=(const Map& other) const; | ||
| 28 | private: | 30 | private: |
| 29 | struct EntityData { | 31 | struct EntityData { |
| 30 | std::string name; | 32 | std::string name; |
| @@ -33,6 +35,7 @@ class Map { | |||
| 33 | 35 | ||
| 34 | int* mapdata; | 36 | int* mapdata; |
| 35 | char* title; | 37 | char* title; |
| 38 | std::string name; | ||
| 36 | const Map* leftMap = nullptr; | 39 | const Map* leftMap = nullptr; |
| 37 | const Map* rightMap = nullptr; | 40 | const Map* rightMap = nullptr; |
| 38 | std::list<EntityData> entities; | 41 | std::list<EntityData> entities; |
