From ba5f8f180155888d1aee3507c3fe25109e58abb1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 02 Aug 2021 00:00:29 -0400 Subject: maze: New functions --- (limited to 'src/maze.h') diff --git a/src/maze.h b/src/maze.h new file mode 100644 index 0000000..1f22702 --- /dev/null +++ b/src/maze.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2021 P. J. McDermott + * + * This file is part of Maze Fight + * + * Maze Fight is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Maze Fight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Maze Fight. If not, see . + */ + +#ifndef MF_MAZE_H_ +#define MF_MAZE_H_ + +struct mf_maze; + +void +mf_maze_rm_wall(struct mf_maze *m, int x, int y, int dx, int dy); + +int +mf_maze_is_wall(struct mf_maze *m, int x, int y, int dx, int dy) + __attribute__((__pure__)); + +struct mf_maze * +mf_maze_new(int s, int w, int h); + +void +mf_maze_free(struct mf_maze *m); + +#endif /* MF_MAZE_H_ */ -- cgit v0.9.1