diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-13 15:45:58 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-13 15:45:58 +0300 |
| commit | 41bfefc9e08b0ae4a8de6e96e33feb3e17110011 (patch) | |
| tree | d9f73a88bf9ffdc332caf060943a83c1ee0d1704 /map.h | |
| parent | 3cc28bcfc63369013f8c24a4cf07a13fb54c86dc (diff) | |
| download | astar-41bfefc9e08b0ae4a8de6e96e33feb3e17110011.tar.xz | |
Add function to save map
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |
