summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-05 18:53:06 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-05 18:53:06 -0500
commit937875c4e1432b418f0f5051759e02c8d4c9ffa4 (patch)
treebfb08ae9f8e4619dc213e20739b4fbce682ae0d0 /src/map.h
parentcd72ba5481705072b893d728e2f80931b5cca580 (diff)
downloadtanetane-937875c4e1432b418f0f5051759e02c8d4c9ffa4.tar.gz
tanetane-937875c4e1432b418f0f5051759e02c8d4c9ffa4.tar.bz2
tanetane-937875c4e1432b418f0f5051759e02c8d4c9ffa4.zip
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.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 4 insertions, 0 deletions
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 {
31 bool wander = false; 31 bool wander = false;
32 int movementSpeed = -1; 32 int movementSpeed = -1;
33 std::string enclosureZone; 33 std::string enclosureZone;
34 bool masked = false;
34}; 35};
35 36
36struct Trigger { 37struct Trigger {
@@ -82,6 +83,8 @@ public:
82 83
83 const std::string& getMusic() const { return music_; } 84 const std::string& getMusic() const { return music_; }
84 85
86 const std::string& getMaskZone() const { return maskZone_; }
87
85private: 88private:
86 89
87 std::string name_; 90 std::string name_;
@@ -96,6 +99,7 @@ private:
96 std::vector<Trigger> triggers_; 99 std::vector<Trigger> triggers_;
97 std::map<std::string, Zone> zones_; 100 std::map<std::string, Zone> zones_;
98 std::string music_; 101 std::string music_;
102 std::string maskZone_;
99}; 103};
100 104
101#endif /* end of include guard: MAP_H_D95D6D47 */ 105#endif /* end of include guard: MAP_H_D95D6D47 */