More refinement of the maps. Now the inner box won't have rooms in it and I can mark a region free of rooms. Rooms also have a guaranteed door.

This commit is contained in:
Zed A. Shaw 2026-03-08 12:25:40 -04:00
parent 87a1193a4a
commit 8b129aea6b
4 changed files with 40 additions and 33 deletions

View file

@ -10,6 +10,7 @@ namespace maze {
std::vector<Room>& $rooms;
std::vector<Point>& $dead_ends;
std::unordered_map<Point, bool> $ends_map;
Room $no_rooms_region{0,0,0,0};
Builder(Map& map) :
$walls(map.$walls), $rooms(map.$rooms), $dead_ends(map.$dead_ends)
@ -32,5 +33,6 @@ namespace maze {
void open_box(size_t outer_size);
void add_dead_end(Point at);
bool room_should_exist(Room& room);
void make_doors();
};
}