summary refs log tree commit diff stats
path: root/tools/mapedit/src/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/world.h')
-rw-r--r--tools/mapedit/src/world.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/mapedit/src/world.h b/tools/mapedit/src/world.h index a2b5235..68c960f 100644 --- a/tools/mapedit/src/world.h +++ b/tools/mapedit/src/world.h
@@ -33,6 +33,9 @@ class World {
33 std::list<std::shared_ptr<Map>> getRootMaps() const; 33 std::list<std::shared_ptr<Map>> getRootMaps() const;
34 const std::map<int, std::shared_ptr<Map>> getMaps() const; 34 const std::map<int, std::shared_ptr<Map>> getMaps() const;
35 bool getEmpty() const; 35 bool getEmpty() const;
36 Map* getStartingMap() const;
37 std::pair<double, double> getStartingPosition() const;
38 void setStart(Map* map, std::pair<double, double> startPos);
36 39
37 private: 40 private:
38 MapeditFrame* parent; 41 MapeditFrame* parent;
@@ -43,6 +46,8 @@ class World {
43 int lastmap = 0; 46 int lastmap = 0;
44 std::list<int> rootChildren; 47 std::list<int> rootChildren;
45 bool empty = false; 48 bool empty = false;
49 int startingMap = 0;
50 std::pair<int, int> startingPosition {100, 100};
46}; 51};
47 52
48#endif 53#endif