From 0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jun 2015 18:08:05 +0300 Subject: Convert MapType enum into strong typed enum. --- src/resources/map/map.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/map/map.h') 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; -- cgit v1.2.3-70-g09d2