diff options
Diffstat (limited to 'tools/mapedit/src/map.h')
| -rw-r--r-- | tools/mapedit/src/map.h | 18 |
1 files changed, 2 insertions, 16 deletions
| diff --git a/tools/mapedit/src/map.h b/tools/mapedit/src/map.h index c7f5b30..9c14218 100644 --- a/tools/mapedit/src/map.h +++ b/tools/mapedit/src/map.h | |||
| @@ -8,10 +8,11 @@ | |||
| 8 | #include <memory> | 8 | #include <memory> |
| 9 | #include <wx/treectrl.h> | 9 | #include <wx/treectrl.h> |
| 10 | #include <map> | 10 | #include <map> |
| 11 | #include "object.h" | ||
| 11 | 12 | ||
| 12 | class MapObject; | ||
| 13 | class World; | 13 | class World; |
| 14 | class MapeditFrame; | 14 | class MapeditFrame; |
| 15 | class MapEntryObject; | ||
| 15 | 16 | ||
| 16 | class MapLoadException: public std::exception | 17 | class MapLoadException: public std::exception |
| 17 | { | 18 | { |
| @@ -41,21 +42,6 @@ class MapWriteException: public std::exception | |||
| 41 | std::string mapname; | 42 | std::string mapname; |
| 42 | }; | 43 | }; |
| 43 | 44 | ||
| 44 | struct MapObjectEntry { | ||
| 45 | MapObject* object; | ||
| 46 | std::pair<int, int> position; | ||
| 47 | |||
| 48 | bool operator==(MapObjectEntry& other) const | ||
| 49 | { | ||
| 50 | return (object == other.object) && (position == other.position); | ||
| 51 | } | ||
| 52 | |||
| 53 | bool operator!=(MapObjectEntry& other) const | ||
| 54 | { | ||
| 55 | return (object != other.object) && (position != other.position); | ||
| 56 | } | ||
| 57 | }; | ||
| 58 | |||
| 59 | class Map { | 45 | class Map { |
| 60 | public: | 46 | public: |
| 61 | Map(int id, World* world); | 47 | Map(int id, World* world); |
