diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-16 23:02:27 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-16 23:02:27 +0300 |
| commit | 22b285ffc4345bee05772509a60fb77fb90d16a0 (patch) | |
| tree | d981ffb1951028423fb4c832166b4efde6fe8029 /path.h | |
| parent | 7dfb37936206de02e9a8c0ef5a3e0593aa535cd1 (diff) | |
| download | astar-22b285ffc4345bee05772509a60fb77fb90d16a0.tar.xz | |
Add pathfinding timing
Diffstat (limited to 'path.h')
| -rw-r--r-- | path.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,8 @@ /* The currently chosen path func */ extern Path (*path_func)(int, Map, size_t **, size_t, size_t, Position, Position, char **, char); +/* Time it took to calculate a path */ +extern double path_time; /* dirs can be 4 or 8 to disallow or allow diagonal movement */ //Path breadth_first_search_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); |
