summaryrefslogtreecommitdiffstats
path: root/src/maze.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-02 00:00:29 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-02 00:00:29 (EDT)
commitba5f8f180155888d1aee3507c3fe25109e58abb1 (patch)
tree0f791b71cf249f8933500b63350148e7d7097d36 /src/maze.h
parenteb0084ef69a05f8d5c93a4d2d5a500c11f558543 (diff)
downloadmazefight-ba5f8f180155888d1aee3507c3fe25109e58abb1.zip
mazefight-ba5f8f180155888d1aee3507c3fe25109e58abb1.tar.gz
mazefight-ba5f8f180155888d1aee3507c3fe25109e58abb1.tar.bz2
maze: New functions
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_ */