aboutsummaryrefslogtreecommitdiff
path: root/src/maze.h
diff options
context:
space:
mode:
authorHampus <hampus@hampusmat.com>2021-12-18 18:56:20 +0100
committerHampus <hampus@hampusmat.com>2021-12-18 18:56:20 +0100
commit2f945e6c0edaf679d693cdfa61aeba62403dec9f (patch)
tree03079dc5f53edbbd0bb68d1ba5eb978f7c21709e /src/maze.h
parentc29486fecc272de43c11f4f26456094ce265b6f2 (diff)
refactor: clarify maze and stack logic
Diffstat (limited to 'src/maze.h')
-rw-r--r--src/maze.h11
1 files changed, 6 insertions, 5 deletions
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