summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-11-07 11:29:03 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-11-07 11:29:03 +0100
commitf951af3cfdef3d23fd5875078a29c15ebf9120e9 (patch)
treef8d77f49d3663ab47f7f7819bcc3f276aa2f27ea /src/common.hpp
parent68afd10851e01872c5c7774a2c1a09039d6e61d7 (diff)
Bring diagonal walking back.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 6d4c7c2..10fafcf 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -144,6 +144,10 @@ namespace world {
} path_node_t;
class path_finder_t {
+ path_node_t *node_at(tile_index_t index);
+ bool is_accessible(tile_index_t index);
+ bool diagonal_test(tile_index_t index, size_t i);
+
public:
v2f_t src, dst, tile_center;
cflags_t cflags;