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:
Zed A. Shaw 2024-11-07 01:00:17 -05:00
parent 0a268591c2
commit 011fee4872
4 changed files with 37 additions and 31 deletions

View file

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