summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 3b63b02d..5140717c 100644
--- a/src/being.h
+++ b/src/being.h
@@ -647,6 +647,15 @@ class Being : public Sprite, public ConfigListener
Vector mDest; /**< destination coordinates. */
+ /**
+ * Check the current position against surrounding
+ * blocking tiles, and correct the position offset within
+ * tile when needed.
+ */
+ Position checkNodeOffsets(Position position);
+ Position checkNodeOffsets(int x, int y)
+ { return checkNodeOffsets(Position(x, y)); }
+
private:
/**