A bit of late night work designing the little iterators.

This commit is contained in:
Zed A. Shaw 2024-12-14 11:00:52 -05:00
parent da0b941dfd
commit 8e470df554
11 changed files with 115 additions and 235 deletions

View file

@ -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) {