summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-25 05:42:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-25 06:21:01 +0100
commit1802970cdc6785d9c0bf36f49ec31d6939a99149 (patch)
tree5f473d190ae9eba9c721b1706105d4da664b9f3b /src
parent807b4ba44792a159eec3322a91535bbd3649ef44 (diff)
clean up more headers
Diffstat (limited to 'src')
-rw-r--r--src/search-astar.hpp5
-rw-r--r--src/search-bbox.hpp1
-rw-r--r--src/search.hpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/search-astar.hpp b/src/search-astar.hpp
index dbd89892..c31b348f 100644
--- a/src/search-astar.hpp
+++ b/src/search-astar.hpp
@@ -1,14 +1,17 @@
#pragma once
#include "compat/safe-ptr.hpp"
-#include "search.hpp"
#include "search-constants.hpp"
+#include "search-pred.hpp"
+#include "object-id.hpp"
#include <Corrade/Containers/Array.h>
namespace floormat::Search { struct cache; }
namespace floormat {
+class world;
struct point;
+struct path_search_result;
class astar
{
diff --git a/src/search-bbox.hpp b/src/search-bbox.hpp
index 0d211daf..28c7d2c2 100644
--- a/src/search-bbox.hpp
+++ b/src/search-bbox.hpp
@@ -1,6 +1,5 @@
#pragma once
#include "search.hpp"
-#include <concepts>
#include <Magnum/Math/Vector2.h>
#include <Magnum/DimensionTraits.h>
diff --git a/src/search.hpp b/src/search.hpp
index c4ffc1eb..1fdaf3e2 100644
--- a/src/search.hpp
+++ b/src/search.hpp
@@ -15,11 +15,9 @@ namespace floormat {
class world;
struct object;
class chunk;
-struct path_search_result;
class path_search final
{
- friend struct path_search_result;
template<typename T> using bbox = Search::bbox<T>;
using pred = Search::pred;