summaryrefslogtreecommitdiff
path: root/src/resources/map/speciallayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 18:51:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 18:51:23 +0300
commit0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441 (patch)
tree38f1e10d59cef374025498e4e5b07576bcf7e8f6 /src/resources/map/speciallayer.h
parent373e404d20dd75e46b14451164c0914df100e236 (diff)
downloadplus-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.gz
plus-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.bz2
plus-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.xz
plus-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.zip
Add name into SpecialLayer memory object.
Diffstat (limited to 'src/resources/map/speciallayer.h')
-rw-r--r--src/resources/map/speciallayer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/resources/map/speciallayer.h b/src/resources/map/speciallayer.h
index b8b2c251a..1c69ab4be 100644
--- a/src/resources/map/speciallayer.h
+++ b/src/resources/map/speciallayer.h
@@ -36,7 +36,9 @@ class SpecialLayer final : public MemoryCounter
friend class Map;
friend class MapLayer;
- SpecialLayer(const int width, const int height);
+ SpecialLayer(const std::string &name,
+ const int width,
+ const int height);
A_DELETE_COPY(SpecialLayer)
@@ -59,10 +61,14 @@ class SpecialLayer final : public MemoryCounter
int calcMemoryLocal() const override final;
+ std::string getCounterName() const override final
+ { return mName; }
+
private:
+ const std::string mName;
+ MapItem **mTiles;
int mWidth;
int mHeight;
- MapItem **mTiles;
};
#endif // RESOURCES_MAP_SPECIALLAYER_H