summary refs log tree commit diff stats
path: root/tools/mapedit/src/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/map.h')
-rw-r--r--tools/mapedit/src/map.h18
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
12class MapObject;
13class World; 13class World;
14class MapeditFrame; 14class MapeditFrame;
15class MapEntryObject;
15 16
16class MapLoadException: public std::exception 17class 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
44struct 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
59class Map { 45class Map {
60 public: 46 public:
61 Map(int id, World* world); 47 Map(int id, World* world);