Block::Block |
( |
const Block & |
r | ) |
|
Block::Block |
( |
int |
_tl_x, |
|
|
int |
_tl_y, |
|
|
int |
_height, |
|
|
int |
_width |
|
) |
| |
- Parameters
-
_tl | the top-left corner of the room relative to the settlment |
_br | the bottom-right corner of the room relative to its parent dungeon |
Creates a new Block.
void Block::generate_buildings |
( |
| ) |
|
Generates houses inside of the block.
std::vector< Building > & Block::get_buildings |
( |
| ) |
|
int Block::get_height |
( |
| ) |
|
Accessor for the x coord.
Accessor for the y coord.
A list of buildings inside of the block.
The top left corner of the room relative to its parent dungeon.
The documentation for this class was generated from the following files:
- src/world/civ/block.h
- src/world/civ/block.cpp