diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-26 20:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-26 20:11:07 +0300 |
commit | 07675230038a24dd251581591379c8fe5cc7bfd1 (patch) | |
tree | 1e4633730515af717ba93aef111f855de5cc9b38 /src/resources/map/speciallayer.h | |
parent | 17f34f00d37432dae207be3d55ec531a738eb065 (diff) | |
download | mv-07675230038a24dd251581591379c8fe5cc7bfd1.tar.gz mv-07675230038a24dd251581591379c8fe5cc7bfd1.tar.bz2 mv-07675230038a24dd251581591379c8fe5cc7bfd1.tar.xz mv-07675230038a24dd251581591379c8fe5cc7bfd1.zip |
Add memory count functions into MapLayer and SpecailLayer.
Also change all memory count functions into const methods.
Diffstat (limited to 'src/resources/map/speciallayer.h')
-rw-r--r-- | src/resources/map/speciallayer.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; |