aboutsummaryrefslogtreecommitdiff
path: root/cavegen.h
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-02-12 12:51:08 -0600
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-02-12 12:51:08 -0600
commitf534c8d2c4cd8c8692cd7d831afb3041cc584c2b (patch)
tree49687d4df101f6f1c6f3688bcca02eac7021d232 /cavegen.h
parent8e873b2f45814508cbc6532ed2aac22729b53290 (diff)
refactor
Diffstat (limited to 'cavegen.h')
-rw-r--r--cavegen.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/cavegen.h b/cavegen.h
index 829c7a6..450f905 100644
--- a/cavegen.h
+++ b/cavegen.h
@@ -3,16 +3,24 @@
#include <stdbool.h>
-#define HEIGHT 100
-#define WIDTH 180
-#define MAX_STEPS 200
-#define NUM_WALKERS 100
+#define HEIGHT 100
+#define WIDTH 180
+
+enum tile_type {
+ WALL,
+ GROUND,
+ UP_STAIR,
+ DOWN_STAIR,
+};
struct point {
int x;
int y;
};
-void create_cave(bool **map, struct point **open, int *open_tiles);
+void create_cave(
+ enum tile_type **map, struct point **open, int *open_tiles,
+ struct point *up, struct point *down
+);
#endif // CAVEGEN_H_