Slightly better parition and map_drawing.

This commit is contained in:
Zed A. Shaw 2024-09-28 16:48:47 -04:00
parent 44f11d5ddd
commit a37a40d45f
2 changed files with 27 additions and 66 deletions

View file

@ -31,6 +31,7 @@ class Map {
Matrix m_input_map;
Matrix m_walls;
Matrix m_paths;
std::vector<Room> m_rooms;
int m_limit = 0;
public:
@ -59,10 +60,5 @@ public:
void draw_map(Room &root);
void make_paths();
void partition_map(std::mt19937 &gen, Room &cur, int depth);
void dump() {
dump_map("PATHS", m_paths);
dump_map("WALLS", m_walls);
dump_map("INPUT", m_input_map);
}
void dump();
};