#ifndef MAP_H #define MAP_H #include "common.h" // Check if a tile is walkable floor int is_floor(const Map *map, int x, int y); // Get room center coordinates void get_room_center(Room *room, int *cx, int *cy); // Generate a new dungeon floor void dungeon_generate(Dungeon *d, Map *map, int floor_num); // Initialize map to all walls 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