summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-06-08 23:07:00 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-06-08 23:07:50 +0200
commit2a60ed3f85004c872eb9d0ae39d4aa1c47626543 (patch)
tree45db39c43ebe0b2ae8b3dc1d061d000d02c2e5a5 /src/map.h
parent32457dd5b2f9431d4f5d503dc8b090a9c1b7f944 (diff)
downloadmana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.gz
mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.bz2
mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.xz
mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.zip
Reintroduced the 'occupied' check for eAthena movement code
Makes sure the player walks around other players and beings when reasonably possible. This was meant to be based on the blockmask stuff, but I half removed that a few months ago.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index cb0271b3..6baf7411 100644
--- a/src/map.h
+++ b/src/map.h
@@ -227,6 +227,13 @@ class Map : public Properties
bool getWalk(int x, int y,
unsigned char walkmask = BLOCKMASK_WALL) const;
+#ifdef EATHENA_SUPPORT
+ /**
+ * Tells whether a tile is occupied by a being.
+ */
+ bool occupied(int x, int y) const;
+#endif
+
/**
* Returns the width of this map in tiles.
*/