From 81992165f5cf6ddebe7952c694b211b16cc45bd4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 16:46:50 -0400 Subject: Defined map equality --- src/map.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map.h') 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 { void setLeftMap(const Map* m); void setRightMap(const Map* m); void createEntities(std::list>& entities) const; + bool operator==(const Map& other) const; + bool operator!=(const Map& other) const; private: struct EntityData { std::string name; @@ -33,6 +35,7 @@ class Map { int* mapdata; char* title; + std::string name; const Map* leftMap = nullptr; const Map* rightMap = nullptr; std::list entities; -- cgit 1.4.1