From 04ce76d5dc222b2bd031ebd24ede6114b76a2d52 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Mon, 12 Feb 2024 17:47:00 -0600 Subject: refactor --- cavegen.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'cavegen.h') diff --git a/cavegen.h b/cavegen.h index 450f905..05d2fd2 100644 --- a/cavegen.h +++ b/cavegen.h @@ -18,9 +18,14 @@ struct point { int y; }; -void create_cave( - enum tile_type **map, struct point **open, int *open_tiles, - struct point *up, struct point *down -); +struct map { + enum tile_type *map; + struct point entry_point; + + int width; + int height; +}; + +void create_cave(struct map *map); #endif // CAVEGEN_H_ -- cgit v1.2.3