diff options
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 5 |
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 | |||
80 | private: | 84 | private: |
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 */ |