aboutsummaryrefslogtreecommitdiff
path: root/src/maze.h
blob: 38dfe12614b924c9fc4179b76d90448df20543a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MAZE_H
#define MAZE_H

#include "position_stack.h"

struct Dimensions
{
	int width;
	int height;
};

struct Maze
{
	char ***grid;
	struct Dimensions dimens;
	struct Dimensions full_dimens;
};

struct Maze maze_create(struct Dimensions dimens, char *wall);

void maze_excavate(struct Maze maze, struct Position start_pos);

void maze_print(struct Maze maze);

#endif