summaryrefslogtreecommitdiff
path: root/src/resources/map/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 18:08:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 18:08:05 +0300
commit0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac (patch)
tree600aba18b3c90967561ec3ed83f606266a99eff8 /src/resources/map/map.h
parentbcd76117e26e72ed74f9b8c2856a7128e1c27441 (diff)
downloadmv-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.gz
mv-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.bz2
mv-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.xz
mv-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.zip
Convert MapType enum into strong typed enum.
Diffstat (limited to 'src/resources/map/map.h')
-rw-r--r--src/resources/map/map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map/map.h b/src/resources/map/map.h
index 2cba3de6f..28bf9c4b2 100644
--- a/src/resources/map/map.h
+++ b/src/resources/map/map.h
@@ -116,7 +116,7 @@ class Map final : public Properties, public ConfigListener
*/
void drawCollision(Graphics *const graphics,
const int scrollX, const int scrollY,
- const MapType::MapType drawFlags) const;
+ const MapTypeT drawFlags) const;
/**
* Adds a layer to this map. The map takes ownership of the layer.
@@ -217,9 +217,9 @@ class Map final : public Properties, public ConfigListener
*/
void addAnimation(const int gid, TileAnimation *const animation);
- void setDrawLayersFlags(const MapType::MapType &n);
+ void setDrawLayersFlags(const MapTypeT &n);
- MapType::MapType getDrawLayersFlags() const A_WARN_UNUSED
+ MapTypeT getDrawLayersFlags() const A_WARN_UNUSED
{ return mDrawLayersFlags; }
void addExtraLayer();
@@ -385,7 +385,7 @@ class Map final : public Properties, public ConfigListener
bool mHasWarps;
// draw flags
- MapType::MapType mDrawLayersFlags;
+ MapTypeT mDrawLayersFlags;
// Pathfinding members
unsigned int mOnClosedList;