diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 22:41:56 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 22:41:56 +0300 |
| commit | c9ac361e1282bfaa895a1456222bca2d86253a96 (patch) | |
| tree | 4c2b5a90ad35d25b21224af80a519c9ae353b983 /path.h | |
| parent | 768509d6bb91269abf1ee1d93c32d236b146e98a (diff) | |
| download | astar-c9ac361e1282bfaa895a1456222bca2d86253a96.tar.xz | |
Implement live pathfinding in map editor
Diffstat (limited to 'path.h')
| -rw-r--r-- | path.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,9 @@ #include "structs.h" #include "map.h" +/* The currently chosen path func */ +extern Path (*path_func)(int, Map, size_t, size_t, Position, Position, char **, char); + /* dirs can be 4 or 8 to disallow or allow diagonal movement */ Path breadth_first_search_path(int dirs, Map map, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); Path dijkstra_path(int dirs, Map map, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); |
