summary refs log tree commit diff stats
path: root/tools/mapedit/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-19 11:42:54 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-19 11:42:54 -0400
commit281bdf956a646fd8c9944e9a44f867c984792216 (patch)
treeba0297d2125ac22d22c873e012a8f0604e9e3a86 /tools/mapedit/src/map.h
parent103587c2d5f9deb20e549a86cdf5023b429cc6a1 (diff)
downloadtherapy-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.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);