summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-27 12:05:45 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-27 12:05:45 -0500
commit1656242563d14fa564bab8d4bc40054ab8998553 (patch)
tree872589408ac7aef54b1959dc53b946fbed9dfcaa /src/map.h
parente644f5c0d769989bd3b0665312c6949d76f5e388 (diff)
downloadtanetane-1656242563d14fa564bab8d4bc40054ab8998553.tar.gz
tanetane-1656242563d14fa564bab8d4bc40054ab8998553.tar.bz2
tanetane-1656242563d14fa564bab8d4bc40054ab8998553.zip
Added background music (defined on a per-map basis)
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h index 9f5a93b..ee88920 100644 --- a/src/map.h +++ b/src/map.h
@@ -77,6 +77,10 @@ public:
77 77
78 const Zone& getZone(const std::string& name) const { return zones_.at(name); } 78 const Zone& getZone(const std::string& name) const { return zones_.at(name); }
79 79
80 bool hasMusic() const { return !music_.empty(); }
81
82 const std::string& getMusic() const { return music_; }
83
80private: 84private:
81 85
82 std::string name_; 86 std::string name_;
@@ -90,6 +94,7 @@ private:
90 std::map<std::string, vec2i> warpPoints_; 94 std::map<std::string, vec2i> warpPoints_;
91 std::vector<Trigger> triggers_; 95 std::vector<Trigger> triggers_;
92 std::map<std::string, Zone> zones_; 96 std::map<std::string, Zone> zones_;
97 std::string music_;
93}; 98};
94 99
95#endif /* end of include guard: MAP_H_D95D6D47 */ 100#endif /* end of include guard: MAP_H_D95D6D47 */