diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-05 18:53:06 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-05 18:53:06 -0500 |
| commit | 937875c4e1432b418f0f5051759e02c8d4c9ffa4 (patch) | |
| tree | bfb08ae9f8e4619dc213e20739b4fbce682ae0d0 /src/map.h | |
| parent | cd72ba5481705072b893d728e2f80931b5cca580 (diff) | |
| download | tanetane-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.h | 4 |
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 | ||
| 36 | struct Trigger { | 37 | struct 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 | |||
| 85 | private: | 88 | private: |
| 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 */ |
