From 1656242563d14fa564bab8d4bc40054ab8998553 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 27 Feb 2021 12:05:45 -0500 Subject: Added background music (defined on a per-map basis) --- src/map.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map.h') 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: const Zone& getZone(const std::string& name) const { return zones_.at(name); } + bool hasMusic() const { return !music_.empty(); } + + const std::string& getMusic() const { return music_; } + private: std::string name_; @@ -90,6 +94,7 @@ private: std::map warpPoints_; std::vector triggers_; std::map zones_; + std::string music_; }; #endif /* end of include guard: MAP_H_D95D6D47 */ -- cgit 1.4.1