summaryrefslogtreecommitdiff
path: root/src/resources/map/speciallayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-10 19:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-10 19:14:16 +0300
commitb74f800df5fa4165bc82decb8e0d38cf349d71f7 (patch)
tree6bad64a30e06ce980dabd4f2a3659649d02b1598 /src/resources/map/speciallayer.h
parent7aef61e276300a5f3b881e90c9dde14940dbf4bc (diff)
downloadmanaverse-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.gz
manaverse-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.bz2
manaverse-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.xz
manaverse-b74f800df5fa4165bc82decb8e0d38cf349d71f7.zip
Add unit tests for SpecialLayer::updateCache.
Diffstat (limited to 'src/resources/map/speciallayer.h')
-rw-r--r--src/resources/map/speciallayer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/map/speciallayer.h b/src/resources/map/speciallayer.h
index f418aec7c..8f6f914d3 100644
--- a/src/resources/map/speciallayer.h
+++ b/src/resources/map/speciallayer.h
@@ -66,6 +66,14 @@ class SpecialLayer final : public MemoryCounter
void updateCache();
+#ifdef UNITTESTS
+ const int *getCache() const
+ { return mCache; }
+
+ MapItem **getTiles() const
+ { return mTiles; }
+#endif // UNITTESTS
+
private:
const std::string mName;
MapItem **mTiles;