diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-03 17:31:27 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-03 17:31:27 +0300 |
| commit | 0dd0adf9547758381573caa6a7d485415fafb33d (patch) | |
| tree | 06ed17c351d7adc6920d8bed6f3bdf87b8d958bd /map.h | |
| parent | 97decbee0dbc066db7ee94d0988ee26c1f8b35a8 (diff) | |
| download | astar-0dd0adf9547758381573caa6a7d485415fafb33d.tar.xz | |
Make map offsets global
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,6 +6,9 @@ #include "path.h" #include "priority_queue.h" +extern int map_offset_x; +extern int map_offset_y; + /* Returns an empty map of given size */ Map empty_map(size_t width, size_t height); @@ -41,7 +44,7 @@ Map file_plaintext_map(char *filename, size_t *width, size_t *height, Position * /* Draw the map. Bet you didn't expect that. * path could be NULL to draw a map with no path. So can cursor, frontier and visited */ -void draw_map(Map map, size_t width, size_t height, int offset_x, int offset_y, Position start, Position goal, Position *cursor, Path path, char **visited, PositionPQ *frontier); +void draw_map(Map map, size_t width, size_t height, Position start, Position goal, Position *cursor, Path path, char **visited, PositionPQ *frontier); /* Frees all the memory reserved for the map */ void map_free(Map map, size_t height); |
