Slight better but I think place_doors can be even better.
This commit is contained in:
parent
f304538325
commit
908f5bfb3e
4 changed files with 37 additions and 36 deletions
|
|
@ -41,11 +41,11 @@ namespace maze {
|
|||
void open_box(size_t outer_size);
|
||||
void add_dead_end(Point at);
|
||||
bool room_should_exist(Room& room, bool allow_dupes=false);
|
||||
void make_doors();
|
||||
void place_doors();
|
||||
bool validate();
|
||||
bool repair();
|
||||
void punch_dead_end(size_t at_x, size_t at_y, size_t x, size_t y);
|
||||
void in_bounds(size_t x, size_t y);
|
||||
bool space_available(size_t x, size_t y);
|
||||
};
|
||||
|
||||
std::pair<Builder, bool> script(Map& map, nlohmann::json& config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue