A bit of late night work designing the little iterators.
This commit is contained in:
parent
da0b941dfd
commit
8e470df554
11 changed files with 115 additions and 235 deletions
6
map.cpp
6
map.cpp
|
@ -13,7 +13,7 @@ using namespace fmt;
|
|||
Map::Map(size_t width, size_t height) :
|
||||
$width(width),
|
||||
$height(height),
|
||||
$walls(height, MatrixRow(width, INV_WALL)),
|
||||
$walls(height, matrix::Row(width, INV_WALL)),
|
||||
$paths(height, width)
|
||||
{}
|
||||
|
||||
|
@ -54,8 +54,8 @@ bool Map::iswall(size_t x, size_t y) {
|
|||
}
|
||||
|
||||
void Map::dump(int show_x, int show_y) {
|
||||
matrix_dump("WALLS", walls(), show_x, show_y);
|
||||
matrix_dump("PATHS", paths(), show_x, show_y);
|
||||
matrix::dump("WALLS", walls(), show_x, show_y);
|
||||
matrix::dump("PATHS", paths(), show_x, show_y);
|
||||
}
|
||||
|
||||
bool Map::can_move(Point move_to) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue