diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-16 21:28:46 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-16 21:28:46 -0400 |
commit | 29f818c314f86f9a842840c20d9634f0711507a6 (patch) | |
tree | 46f6445f336cc2b7c5dfc64b6f99459a97a8bc03 /tools/mapedit/src/world.h | |
parent | 8b61d93fc869ea39a78cdc134002ef11bf3e69d3 (diff) | |
download | therapy-29f818c314f86f9a842840c20d9634f0711507a6.tar.gz therapy-29f818c314f86f9a842840c20d9634f0711507a6.tar.bz2 therapy-29f818c314f86f9a842840c20d9634f0711507a6.zip |
Added tool to map editor to set game starting position
Diffstat (limited to 'tools/mapedit/src/world.h')
-rw-r--r-- | tools/mapedit/src/world.h | 5 |
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 |