From 29f818c314f86f9a842840c20d9634f0711507a6 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Mar 2015 21:28:46 -0400 Subject: Added tool to map editor to set game starting position --- tools/mapedit/src/world.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/mapedit/src/world.h') 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 { std::list> getRootMaps() const; const std::map> getMaps() const; bool getEmpty() const; + Map* getStartingMap() const; + std::pair getStartingPosition() const; + void setStart(Map* map, std::pair startPos); private: MapeditFrame* parent; @@ -43,6 +46,8 @@ class World { int lastmap = 0; std::list rootChildren; bool empty = false; + int startingMap = 0; + std::pair startingPosition {100, 100}; }; #endif -- cgit 1.4.1