From b2720141c73d7e6770774e832786d00d17a02e19 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 24 Feb 2024 22:43:36 +0100 Subject: default to filtering out critters from region --- src/path-search-pred.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/path-search-pred.hpp (limited to 'src/path-search-pred.hpp') 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; + +const pred& never_continue() noexcept; +const pred& always_continue() noexcept; + +} // namespace floormat::detail_astar -- cgit v1.2.3