Our hero can walk around the world and won't go through walls.
This commit is contained in:
parent
bcc524861e
commit
2e8abbaf5e
3 changed files with 49 additions and 25 deletions
4
map.cpp
4
map.cpp
|
@ -292,6 +292,10 @@ void Map::generate() {
|
|||
}
|
||||
}
|
||||
|
||||
bool Map::iswall(size_t x, size_t y) {
|
||||
return m_walls[y][x] == WALL_VALUE;
|
||||
}
|
||||
|
||||
|
||||
void Map::dump() {
|
||||
dump_map("PATHS", m_paths);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue