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-15 23:24:22 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-15 23:24:22 -0400
commit213cab3c04b81428ab715f340bd7c12438fdb980 (patch)
tree295d25eac4b94357ac5b9bb4b3fd03130181b956 /tools/mapedit/src/map.h
parent25240241e91dc913d20fbb93aa4acc9433dda6a0 (diff)
downloadtherapy-213cab3c04b81428ab715f340bd7c12438fdb980.tar.gz
therapy-213cab3c04b81428ab715f340bd7c12438fdb980.tar.bz2
therapy-213cab3c04b81428ab715f340bd7c12438fdb980.zip
Map editor can now add entities to maps
Also fixed a big bug regarding scrolling
Diffstat (limited to 'tools/mapedit/src/map.h')
-rw-r--r--tools/mapedit/src/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mapedit/src/map.h b/tools/mapedit/src/map.h index 52e047d..850a66b 100644 --- a/tools/mapedit/src/map.h +++ b/tools/mapedit/src/map.h
@@ -44,7 +44,7 @@ class MapWriteException: public std::exception
44}; 44};
45 45
46struct MapObjectEntry { 46struct MapObjectEntry {
47 std::shared_ptr<MapObject> object; 47 MapObject* object;
48 std::pair<double, double> position; 48 std::pair<double, double> position;
49}; 49};
50 50
@@ -64,7 +64,7 @@ class Map {
64 bool hasUnsavedChanges() const; 64 bool hasUnsavedChanges() const;
65 void setTileAt(int x, int y, int tile); 65 void setTileAt(int x, int y, int tile);
66 int getTileAt(int x, int y) const; 66 int getTileAt(int x, int y) const;
67 std::list<MapObjectEntry> getObjects(); 67 std::list<MapObjectEntry>& getObjects();
68 68
69 private: 69 private:
70 std::list<MapObjectEntry> objects; 70 std::list<MapObjectEntry> objects;