Playing with maze gen again.
This commit is contained in:
parent
c97648ab3a
commit
33cd490ed3
8 changed files with 164 additions and 36 deletions
13
maze.hpp
13
maze.hpp
|
@ -3,5 +3,16 @@
|
|||
#include "map.hpp"
|
||||
|
||||
namespace maze {
|
||||
void hunt_and_kill(Matrix& maze, std::vector<Room>& rooms, std::vector<Point>& dead_ends);
|
||||
|
||||
void init(Matrix& maze);
|
||||
|
||||
void hunt_and_kill(Matrix& maze, std::vector<Room>& rooms, std::vector<Point>& dead_ends, bool init_map=true);
|
||||
|
||||
void randomize_rooms(std::vector<Room>& rooms_out, std::vector<Point> maybe_here);
|
||||
|
||||
void inner_ring(Matrix& map, size_t outer_size, size_t inner_size);
|
||||
|
||||
void divide(Matrix& maze, Point start, Point end);
|
||||
|
||||
void remove_dead_ends(Matrix& maze, std::vector<Point>& dead_ends);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue