diff options
Diffstat (limited to 'src/path-search-pred.hpp')
-rw-r--r-- | src/path-search-pred.hpp | 18 |
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 |