diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-07 03:23:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-07 03:23:49 +0200 |
commit | db9532ae255798454be991a1d8cdd1bc55206363 (patch) | |
tree | af0d530e161b1c02e491031ace0df2d8c52cd65e /src/path-search-dijkstra.cpp | |
parent | 06488337637fe6c506ca30fe445c6fa3c4f2494c (diff) |
a
Diffstat (limited to 'src/path-search-dijkstra.cpp')
-rw-r--r-- | src/path-search-dijkstra.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/path-search-dijkstra.cpp b/src/path-search-dijkstra.cpp index 44da9ebe..8d877784 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -112,15 +112,17 @@ path_search_result path_search::Dijkstra(world& w, Vector2ub own_size, object_id auto [cur, dist0] = astar.pop(); if (!astar.add_visited(cur)) continue; + for (auto [dir, len] : dirs) + { + + } } // todo... return result; } -path_search_result path_search::Dijkstra(world& w, const object& obj, - global_coords to, Vector2b to_offset, - const pred& p) +path_search_result path_search::Dijkstra(world& w, const object& obj, global_coords to, Vector2b to_offset, const pred& p) { constexpr auto full_tile = Vector2ub(iTILE_SIZE2*3/4); auto size = Math::max(obj.bbox_size, full_tile); |