summaryrefslogtreecommitdiffstats
path: root/src/maze.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maze.h')
-rw-r--r--src/maze.h38
1 files changed, 38 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+ */
+
+#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_ */