A little bit nicer but ultimately the way the system talks to the GUI needs a redesign to be more 'coarse grain'
This commit is contained in:
parent
0a268591c2
commit
011fee4872
4 changed files with 37 additions and 31 deletions
6
map.hpp
6
map.hpp
|
@ -73,6 +73,12 @@ public:
|
|||
void add_door(Room &room);
|
||||
bool inmap(size_t x, size_t y);
|
||||
bool iswall(size_t x, size_t y);
|
||||
|
||||
bool can_move(Point move_to) {
|
||||
return inmap(move_to.x, move_to.y) &&
|
||||
!iswall(move_to.x, move_to.y);
|
||||
}
|
||||
|
||||
bool neighbors(Point &out, bool up);
|
||||
void generate();
|
||||
void place_rooms(Room &root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue