diff options
author | Hampus <hampus@hampusmat.com> | 2021-12-18 18:56:20 +0100 |
---|---|---|
committer | Hampus <hampus@hampusmat.com> | 2021-12-18 18:56:20 +0100 |
commit | 2f945e6c0edaf679d693cdfa61aeba62403dec9f (patch) | |
tree | 03079dc5f53edbbd0bb68d1ba5eb978f7c21709e /src/maze.h | |
parent | c29486fecc272de43c11f4f26456094ce265b6f2 (diff) |
refactor: clarify maze and stack logic
Diffstat (limited to 'src/maze.h')
-rw-r--r-- | src/maze.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |