diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-10 19:14:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-10 19:14:16 +0300 |
commit | b74f800df5fa4165bc82decb8e0d38cf349d71f7 (patch) | |
tree | 6bad64a30e06ce980dabd4f2a3659649d02b1598 /src/resources/map/speciallayer.h | |
parent | 7aef61e276300a5f3b881e90c9dde14940dbf4bc (diff) | |
download | mv-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.gz mv-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.bz2 mv-b74f800df5fa4165bc82decb8e0d38cf349d71f7.tar.xz mv-b74f800df5fa4165bc82decb8e0d38cf349d71f7.zip |
Add unit tests for SpecialLayer::updateCache.
Diffstat (limited to 'src/resources/map/speciallayer.h')
-rw-r--r-- | src/resources/map/speciallayer.h | 8 |
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; |