Slightly better parition and map_drawing.
This commit is contained in:
parent
44f11d5ddd
commit
a37a40d45f
2 changed files with 27 additions and 66 deletions
8
map.hpp
8
map.hpp
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue