From 07675230038a24dd251581591379c8fe5cc7bfd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 20:11:07 +0300 Subject: Add memory count functions into MapLayer and SpecailLayer. Also change all memory count functions into const methods. --- src/resources/map/speciallayer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/resources/map/speciallayer.h') diff --git a/src/resources/map/speciallayer.h b/src/resources/map/speciallayer.h index f930a9759..b8b2c251a 100644 --- a/src/resources/map/speciallayer.h +++ b/src/resources/map/speciallayer.h @@ -21,6 +21,8 @@ #ifndef RESOURCES_MAP_SPECIALLAYER_H #define RESOURCES_MAP_SPECIALLAYER_H +#include "resources/memorycounter.h" + #include "position.h" #include "localconsts.h" @@ -28,7 +30,7 @@ class Graphics; class MapItem; -class SpecialLayer final +class SpecialLayer final : public MemoryCounter { public: friend class Map; @@ -55,6 +57,8 @@ class SpecialLayer final void clean() const; + int calcMemoryLocal() const override final; + private: int mWidth; int mHeight; -- cgit v1.2.3-60-g2f50