From 2f945e6c0edaf679d693cdfa61aeba62403dec9f Mon Sep 17 00:00:00 2001 From: Hampus Date: Sat, 18 Dec 2021 18:56:20 +0100 Subject: refactor: clarify maze and stack logic --- src/maze.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/maze.h') diff --git a/src/maze.h b/src/maze.h index fc0e489..38dfe12 100644 --- a/src/maze.h +++ b/src/maze.h @@ -3,7 +3,7 @@ #include "position_stack.h" -struct MazeSize +struct Dimensions { int width; int height; @@ -12,13 +12,14 @@ struct MazeSize struct Maze { char ***grid; - struct MazeSize size; + struct Dimensions dimens; + struct Dimensions full_dimens; }; -struct Maze maze_create(struct MazeSize size, char *wall); +struct Maze maze_create(struct Dimensions dimens, char *wall); void maze_excavate(struct Maze maze, struct Position start_pos); -void maze_print(char ***maze, int width, int height); +void maze_print(struct Maze maze); -#endif \ No newline at end of file +#endif -- cgit v1.2.3-18-g5258