summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-07-06 10:13:33 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2021-07-06 10:13:33 -0400
commit77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6 (patch)
treeaa8addf2f54d3def01edb29944cacdebdcaf981b /src/map.h
parent8aedeaf12c7dbf35f2f75f1b063b76a4fad06f30 (diff)
downloadtanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.gz
tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.bz2
tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.zip
Added the ability to pan camera to a warp point
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h index 4019428..956e370 100644 --- a/src/map.h +++ b/src/map.h
@@ -79,7 +79,7 @@ public:
79 79
80 const std::vector<Prototype>& getPrototypes() const { return prototypes_; } 80 const std::vector<Prototype>& getPrototypes() const { return prototypes_; }
81 81
82 const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } 82 const vec2i& getWarpPoint(std::string_view name) const { return warpPoints_.find(name)->second; }
83 83
84 const std::vector<Trigger>& getTriggers() const { return triggers_; } 84 const std::vector<Trigger>& getTriggers() const { return triggers_; }
85 85
@@ -103,7 +103,7 @@ private:
103 std::string tilesetFilename_; 103 std::string tilesetFilename_;
104 int tilesetColumns_; 104 int tilesetColumns_;
105 std::vector<Prototype> prototypes_; 105 std::vector<Prototype> prototypes_;
106 std::map<std::string, vec2i> warpPoints_; 106 std::map<std::string, vec2i, std::less<>> warpPoints_;
107 std::vector<Trigger> triggers_; 107 std::vector<Trigger> triggers_;
108 std::map<std::string, Zone> zones_; 108 std::map<std::string, Zone> zones_;
109 std::string music_; 109 std::string music_;