From c9ac361e1282bfaa895a1456222bca2d86253a96 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 14 Apr 2026 22:41:56 +0300 Subject: Implement live pathfinding in map editor --- path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'path.h') diff --git a/path.h b/path.h index 9f3f38f..6b4dda6 100644 --- a/path.h +++ b/path.h @@ -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); -- cgit v1.2.3