diff options
Diffstat (limited to 'tools/mapedit/src/map.cpp')
-rw-r--r-- | tools/mapedit/src/map.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/mapedit/src/map.cpp b/tools/mapedit/src/map.cpp index a099e29..7e6c3c0 100644 --- a/tools/mapedit/src/map.cpp +++ b/tools/mapedit/src/map.cpp | |||
@@ -188,6 +188,11 @@ const Map::Adjacent& Map::getAdjacent(MoveDir direction) const | |||
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | size_t Map::getNextObjectIndex() const | ||
192 | { | ||
193 | return nextObjectIndex; | ||
194 | } | ||
195 | |||
191 | void Map::setTitle(std::string title, bool dirty) | 196 | void Map::setTitle(std::string title, bool dirty) |
192 | { | 197 | { |
193 | this->title = title; | 198 | this->title = title; |
@@ -271,3 +276,12 @@ void Map::setAdjacent(MoveDir direction, MoveType type, int map, bool dirty) | |||
271 | } | 276 | } |
272 | } | 277 | } |
273 | 278 | ||
279 | size_t Map::getAndIncrementNextObjectIndex() | ||
280 | { | ||
281 | return nextObjectIndex++; | ||
282 | } | ||
283 | |||
284 | void Map::setNextObjectIndex(size_t v) | ||
285 | { | ||
286 | nextObjectIndex = v; | ||
287 | } | ||