aboutsummaryrefslogtreecommitdiff
path: root/src/maze.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maze.h')
-rw-r--r--src/maze.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/maze.h b/src/maze.h
index 38dfe12..8c66ff7 100644
--- a/src/maze.h
+++ b/src/maze.h
@@ -3,23 +3,33 @@
#include "position_stack.h"
-struct Dimensions
+typedef struct Dimensions
{
int width;
int height;
-};
+} Dimensions;
-struct Maze
+typedef struct Maze
{
char ***grid;
- struct Dimensions dimens;
- struct Dimensions full_dimens;
-};
+ Dimensions dimens;
+ Dimensions full_dimens;
+} Maze;
-struct Maze maze_create(struct Dimensions dimens, char *wall);
+Maze maze_create(Dimensions dimens, char *wall);
-void maze_excavate(struct Maze maze, struct Position start_pos);
+void maze_destroy(Maze *maze);
-void maze_print(struct Maze maze);
+/**
+ * Excavates a maze.
+ *
+ * This is what creates the actual maze.
+ *
+ * @param maze The maze to excavate
+ * @param start_pos Start position
+ */
+void maze_excavate(Maze *maze, Position start_pos);
+
+void maze_print(Maze maze);
#endif