diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-24 23:53:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-24 23:53:51 +0300 |
commit | 72168639865fb75a4c216b1058dc8412d4c81277 (patch) | |
tree | 876e745fe1b5924073faedd53d28a68a83e4593a /src/map.h | |
parent | f9feb8f1fd4e2dc56218aba40ef94962fa866f84 (diff) | |
download | mv-72168639865fb75a4c216b1058dc8412d4c81277.tar.gz mv-72168639865fb75a4c216b1058dc8412d4c81277.tar.bz2 mv-72168639865fb75a4c216b1058dc8412d4c81277.tar.xz mv-72168639865fb75a4c216b1058dc8412d4c81277.zip |
Add autodetection walkable tiles in maps without client data.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -219,6 +219,8 @@ class Map : public Properties, public ConfigListener unsigned char walkmask = BLOCKMASK_WALL | BLOCKMASK_AIR | BLOCKMASK_WATER) const; + void setWalk(int x, int y, bool walkable); + /** * Tells whether a tile is occupied by a being. */ @@ -376,6 +378,12 @@ class Map : public Properties, public ConfigListener bool empty() const { return mLayers.empty(); } + void setCustom(bool b) + { mCustom = b; } + + bool isCustom() + { return mCustom; } + protected: friend class Actor; friend class Minimap; @@ -483,6 +491,7 @@ class Map : public Properties, public ConfigListener int mDrawScrollY; bool mRedrawMap; bool mBeingOpacity; + bool mCustom; }; #endif |