diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
commit | 281bdf956a646fd8c9944e9a44f867c984792216 (patch) | |
tree | ba0297d2125ac22d22c873e012a8f0604e9e3a86 /tools/mapedit/src/map.h | |
parent | 103587c2d5f9deb20e549a86cdf5023b429cc6a1 (diff) | |
download | therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.gz therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.bz2 therapy-281bdf956a646fd8c9944e9a44f867c984792216.zip |
Map editor can now edit properties for objects (breaks main game build)
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); |