Mostly pulled out all of the ftxui rendering into cleaner areas.
This commit is contained in:
parent
710076edfb
commit
10e5f53292
3 changed files with 13 additions and 2 deletions
7
map.cpp
7
map.cpp
|
@ -286,6 +286,13 @@ void Map::clear_target(Point &at) {
|
|||
input_map_[at.y][at.x] = 1;
|
||||
}
|
||||
|
||||
Point Map::place_entity(size_t room_index) {
|
||||
dbc::check(room_index < rooms_.size(), "room_index is out of bounds, not enough rooms");
|
||||
|
||||
Room &start = rooms_[room_index];
|
||||
return {start.x+1, start.y+1};
|
||||
}
|
||||
|
||||
void Map::generate() {
|
||||
Room root{
|
||||
.x = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue