forked from NotAShelf/rogged
map: add is_floor() helper to check walkable tiles
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I7368f74d1cbcf5913e5d8e9331cfa4326a6a6964
This commit is contained in:
parent
c61e31f628
commit
d3798cc99f
2 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "common.h"
|
||||
|
||||
// Check if a tile is walkable floor
|
||||
int is_floor(Map *map, int x, int y);
|
||||
int is_floor(const Map *map, int x, int y);
|
||||
|
||||
// Get room center coordinates
|
||||
void get_room_center(Room *room, int *cx, int *cy);
|
||||
|
|
@ -18,4 +18,4 @@ void map_init(Map *map);
|
|||
// Get a random floor tile position
|
||||
void get_random_floor_tile(Map *map, int *x, int *y, int attempts);
|
||||
|
||||
#endif // MAP_H
|
||||
#endif // MAP_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue