|
|
@ -286,6 +286,13 @@ void Map::clear_target(Point &at) { |
|
|
|
input_map_[at.y][at.x] = 1; |
|
|
|
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() { |
|
|
|
void Map::generate() { |
|
|
|
Room root{ |
|
|
|
Room root{ |
|
|
|
.x = 0, |
|
|
|
.x = 0, |
|
|
|