diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:46:50 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:46:50 -0400 |
| commit | 81992165f5cf6ddebe7952c694b211b16cc45bd4 (patch) | |
| tree | e9d2a7f2959f8d0474a7bd5aba866e3539deefee /src/map.h | |
| parent | 6eaefb4dd401a1c5e9cc7fb8e909521e045c0710 (diff) | |
| download | therapy-81992165f5cf6ddebe7952c694b211b16cc45bd4.tar.gz therapy-81992165f5cf6ddebe7952c694b211b16cc45bd4.tar.bz2 therapy-81992165f5cf6ddebe7952c694b211b16cc45bd4.zip | |
Defined map equality
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; |
