aboutsummaryrefslogtreecommitdiff
path: root/cavegen.h
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-02-12 17:47:00 -0600
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-02-12 17:47:00 -0600
commit04ce76d5dc222b2bd031ebd24ede6114b76a2d52 (patch)
tree7c20f6fff63e715e100e76f94fb34de85d5e00ad /cavegen.h
parent362dcec55b292e3eb605f9aab35c7596dd5c1b13 (diff)
refactor
Diffstat (limited to 'cavegen.h')
-rw-r--r--cavegen.h13
1 files changed, 9 insertions, 4 deletions
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_