Mostly cleaned up world get to handle more rooms and paths, but rando_rect needs to be actually random.
This commit is contained in:
parent
c19c53b15b
commit
e9277bf052
11 changed files with 257 additions and 39 deletions
4
map.hpp
4
map.hpp
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue