From 72168639865fb75a4c216b1058dc8412d4c81277 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Jun 2012 23:53:51 +0300 Subject: Add autodetection walkable tiles in maps without client data. --- src/map.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/map.h') 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 -- cgit v1.2.3-60-g2f50