Mostly pulled out all of the ftxui rendering into cleaner areas.

This commit is contained in:
Zed A. Shaw 2024-10-02 18:55:17 -04:00
parent 710076edfb
commit 10e5f53292
3 changed files with 13 additions and 2 deletions

View file

@ -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,