summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
commit72168639865fb75a4c216b1058dc8412d4c81277 (patch)
tree876e745fe1b5924073faedd53d28a68a83e4593a /src/map.h
parentf9feb8f1fd4e2dc56218aba40ef94962fa866f84 (diff)
downloadplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.gz
plus-72168639865fb75a4c216b1058dc8412d4c81277.tar.bz2
plus-72168639865fb75a4c216b1058dc8412d4c81277.tar.xz
plus-72168639865fb75a4c216b1058dc8412d4c81277.zip
Add autodetection walkable tiles in maps without client data.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 3f9df9f95..44eb63979 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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