summaryrefslogtreecommitdiffhomepage
path: root/src/search-pred.hpp
blob: c2967549eefeb8b9d12b57b2588d0714ee346073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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::Search {

using pred = fu2::function_view<path_search_continue(collision_data) const>;

const pred& never_continue() noexcept;
const pred& always_continue() noexcept;

} // namespace floormat::Search