summaryrefslogtreecommitdiffhomepage
path: root/src/path-search-pred.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-24 22:43:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-24 22:43:36 +0100
commitb2720141c73d7e6770774e832786d00d17a02e19 (patch)
tree1b6f70839dac0fca836dc155ab35db4862eabfc3 /src/path-search-pred.hpp
parent22949e3a9c8136b23d184b3bf8b5e5cbc234ab2f (diff)
default to filtering out critters from region
Diffstat (limited to 'src/path-search-pred.hpp')
-rw-r--r--src/path-search-pred.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/path-search-pred.hpp b/src/path-search-pred.hpp
new file mode 100644
index 00000000..f0f99c3e
--- /dev/null
+++ b/src/path-search-pred.hpp
@@ -0,0 +1,18 @@
+#pragma once
+#include "compat/function2.fwd.hpp"
+#include "collision.hpp"
+
+namespace floormat {
+
+enum class path_search_continue : bool { pass = false, blocked = true };
+
+} // namespace floormat
+
+namespace floormat::detail_astar {
+
+using pred = fu2::function_view<path_search_continue(collision_data) const>;
+
+const pred& never_continue() noexcept;
+const pred& always_continue() noexcept;
+
+} // namespace floormat::detail_astar