summaryrefslogtreecommitdiffstats
path: root/src/maze.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-08 16:59:35 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-08 17:00:19 (EDT)
commit1af3d32d9c0e44c770de442be8dad7be05ae02d4 (patch)
treefb3dc4408559bc96086b7a685df624053e7ccadc /src/maze.h
parentc234b317843200c5059c57c16621fb722f579fb0 (diff)
downloadmazefight-1af3d32d9c0e44c770de442be8dad7be05ae02d4.zip
mazefight-1af3d32d9c0e44c770de442be8dad7be05ae02d4.tar.gz
mazefight-1af3d32d9c0e44c770de442be8dad7be05ae02d4.tar.bz2
maze: Optionally hide unseen walls
Diffstat (limited to 'src/maze.h')
-rw-r--r--src/maze.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/maze.h b/src/maze.h
index 895e94e..4482f67 100644
--- a/src/maze.h
+++ b/src/maze.h
@@ -31,8 +31,14 @@ int
mf_maze_is_wall(struct mf_maze *m, int x, int y, int dx, int dy)
__attribute__((__pure__));
+int
+mf_maze_is_wall(struct mf_maze *m, int x, int y, int dx, int dy);
+
+void
+mf_maze_reveal_wall(struct mf_maze *m, int x, int y, int dx, int dy);
+
struct mf_maze *
-mf_maze_new(int s, int w, int h);
+mf_maze_new(int s, int w, int h, int show_all);
int
mf_maze_render(struct mf_maze *m, SDL_Renderer *renderer, SDL_Color *color,