summaryrefslogtreecommitdiff
path: root/src/resources/map/mapheights.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 21:47:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 21:47:59 +0300
commit0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e (patch)
tree17c2ff6abcf8af8ae7550963e256323d6cb0b61e /src/resources/map/mapheights.h
parent10b7c4a1313395291a77c50189b31e9daf38a2b0 (diff)
downloadmv-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.gz
mv-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.bz2
mv-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.xz
mv-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.zip
Add memory counting into MapHeights.
Diffstat (limited to 'src/resources/map/mapheights.h')
-rw-r--r--src/resources/map/mapheights.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources/map/mapheights.h b/src/resources/map/mapheights.h
index 333e7fac4..86962c0de 100644
--- a/src/resources/map/mapheights.h
+++ b/src/resources/map/mapheights.h
@@ -21,9 +21,11 @@
#ifndef RESOURCES_MAP_MAPHEIGHTS_H
#define RESOURCES_MAP_MAPHEIGHTS_H
+#include "resources/memorycounter.h"
+
#include "localconsts.h"
-class MapHeights final
+class MapHeights final : public MemoryCounter
{
public:
friend class Map;
@@ -40,6 +42,11 @@ class MapHeights final
{ return x < mWidth && y < mHeight ? mTiles[x + y * mWidth]
: CAST_U8(0U); }
+ int calcMemoryLocal() const override final;
+
+ std::string getCounterName() const override final
+ { return "heights leyer"; }
+
private:
int mWidth;
int mHeight;