From 0c2cd251fa0427b19f7c995bc7da7319d2ac80a5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 9 Feb 2021 19:39:30 -0500 Subject: Maps can contain named points of interest called warps --- src/map.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index a896b00..7bfb15e 100644 --- a/src/map.h +++ b/src/map.h @@ -1,6 +1,7 @@ #ifndef MAP_H_D95D6D47 #define MAP_H_D95D6D47 +#include #include #include #include @@ -48,6 +49,8 @@ public: const std::vector& getPrototypes() const { return prototypes_; } + const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } + private: vec2i mapSize_; @@ -56,6 +59,7 @@ private: int tilesetTextureId_; int tilesetColumns_; std::vector prototypes_; + std::map warpPoints_; }; #endif /* end of include guard: MAP_H_D95D6D47 */ -- cgit 1.4.1