aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-13 15:45:58 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-13 15:45:58 +0300
commit41bfefc9e08b0ae4a8de6e96e33feb3e17110011 (patch)
treed9f73a88bf9ffdc332caf060943a83c1ee0d1704 /map.h
parent3cc28bcfc63369013f8c24a4cf07a13fb54c86dc (diff)
downloadastar-41bfefc9e08b0ae4a8de6e96e33feb3e17110011.tar.xz
Add function to save map
Diffstat (limited to 'map.h')
-rw-r--r--map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/map.h b/map.h
index e9c5bc3..b2b3ff4 100644
--- a/map.h
+++ b/map.h
@@ -46,6 +46,8 @@ Map rbt_maze_map(size_t width, size_t height, unsigned int seed);
* ....#.#...
* ..@....... */
Map file_plaintext_map(char *filename, size_t *width, size_t *height, Position *start_pos, Position *end_pos);
+/* The reverse of above */
+void map_to_file_plaintext(char *filename, Map map, size_t width, size_t height, Position start, Position end);
/* 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 */