Mostly cleaned up world get to handle more rooms and paths, but rando_rect needs to be actually random.

This commit is contained in:
Zed A. Shaw 2025-01-12 14:57:54 -05:00
parent c19c53b15b
commit e9277bf052
11 changed files with 257 additions and 39 deletions

View file

@ -53,7 +53,7 @@ public:
Room &room(size_t at) { return $rooms[at]; }
size_t room_count() { return $rooms.size(); }
Point place_entity(size_t room_index);
bool place_entity(size_t room_index, Point &out);
bool inmap(size_t x, size_t y);
bool iswall(size_t x, size_t y);
bool can_move(Point move_to);
@ -73,4 +73,6 @@ public:
bool INVARIANT();
void load_tiles();
void add_room(Room &room);
void invert_space();
};