diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-24 22:43:36 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-24 22:43:36 +0100 |
commit | b2720141c73d7e6770774e832786d00d17a02e19 (patch) | |
tree | 1b6f70839dac0fca836dc155ab35db4862eabfc3 /src/chunk.hpp | |
parent | 22949e3a9c8136b23d184b3bf8b5e5cbc234ab2f (diff) |
default to filtering out critters from region
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index 5404d25b..0efe9847 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -5,7 +5,7 @@ #include "src/RTree-fwd.h" #include "global-coords.hpp" #include "wall-defs.hpp" -#include "collision.hpp" +#include "path-search-pred.hpp" #include <type_traits> #include <array> #include <Corrade/Containers/Array.h> @@ -119,8 +119,10 @@ public: static constexpr size_t max_wall_quad_count = TILE_COUNT*Wall::Direction_COUNT*(Wall::Group_COUNT+4); + detail_astar::pred default_region_predicate() noexcept; const pass_region* get_pass_region(); void make_pass_region(pass_region& ret); + void make_pass_region(pass_region& ret, const detail_astar::pred& f); private: struct ground_stuff @@ -162,7 +164,7 @@ private: struct bbox final // NOLINT(cppcoreguidelines-pro-type-member-init) { - object_id id; + object_id id; // todo change to collision_data Vector2i start, end; bool operator==(const bbox& other) const noexcept; |