aboutsummaryrefslogtreecommitdiff
path: root/src/maze.h
diff options
context:
space:
mode:
authorHampus <hampus@hampusmat.com>2021-12-14 00:01:35 +0100
committerHampus <hampus@hampusmat.com>2021-12-14 00:01:35 +0100
commit88d8be06f3e5411db6faa59db12210b6079f7d21 (patch)
tree8e05fca5d76cb8734fc30e50297471ca72cdaa20 /src/maze.h
parentaf93edd8433634d82e855e9c9bcbca249a476977 (diff)
refactor: restructure project
Diffstat (limited to 'src/maze.h')
-rw-r--r--src/maze.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/maze.h b/src/maze.h
new file mode 100644
index 0000000..fc0e489
--- /dev/null
+++ b/src/maze.h
@@ -0,0 +1,24 @@
+#ifndef MAZE_H
+#define MAZE_H
+
+#include "position_stack.h"
+
+struct MazeSize
+{
+ int width;
+ int height;
+};
+
+struct Maze
+{
+ char ***grid;
+ struct MazeSize size;
+};
+
+struct Maze maze_create(struct MazeSize size, char *wall);
+
+void maze_excavate(struct Maze maze, struct Position start_pos);
+
+void maze_print(char ***maze, int width, int height);
+
+#endif \ No newline at end of file