From 937875c4e1432b418f0f5051759e02c8d4c9ffa4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 5 Mar 2021 18:53:06 -0500 Subject: Added the mask sprite layer This layer is below the normal sprite layer. Sprites on it are only rendered within the area of a zone that is defined per-map. --- 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 a125082..1167290 100644 --- a/src/map.h +++ b/src/map.h @@ -31,6 +31,7 @@ struct Prototype { bool wander = false; int movementSpeed = -1; std::string enclosureZone; + bool masked = false; }; struct Trigger { @@ -82,6 +83,8 @@ public: const std::string& getMusic() const { return music_; } + const std::string& getMaskZone() const { return maskZone_; } + private: std::string name_; @@ -96,6 +99,7 @@ private: std::vector triggers_; std::map zones_; std::string music_; + std::string maskZone_; }; #endif /* end of include guard: MAP_H_D95D6D47 */ -- cgit 1.4.1