diff options
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -48,6 +48,14 @@ 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); +/* Loads integer costs from a file. Sizes have to match. + * File format: + * 5x4 + * 10 20 30 40 5 + * 20 49 5 3 2 + * 1 2 4 5 2 + * 5 1 95 2 5 */ +size_t **file_plaintext_costs(char *filename, size_t width, size_t height); /* 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 */ |
