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, 4 insertions, 24 deletions
diff --git a/src/maze.h b/src/maze.h
index 8c66ff7..1a3937f 100644
--- a/src/maze.h
+++ b/src/maze.h
@@ -2,34 +2,14 @@
#define MAZE_H
#include "position_stack.h"
-
-typedef struct Dimensions
-{
- int width;
- int height;
-} Dimensions;
-
-typedef struct Maze
-{
- char ***grid;
- Dimensions dimens;
- Dimensions full_dimens;
-} Maze;
-
-Maze maze_create(Dimensions dimens, char *wall);
-
-void maze_destroy(Maze *maze);
+#include "grid.h"
/**
- * Excavates a maze.
- *
- * This is what creates the actual maze.
+ * Creates a maze from a grid
*
- * @param maze The maze to excavate
+ * @param grid A grid
* @param start_pos Start position
*/
-void maze_excavate(Maze *maze, Position start_pos);
-
-void maze_print(Maze maze);
+void grid_to_maze(Grid grid, Position start_pos);
#endif