TCOD_Error
An enum of libtcod error codes.
Definition error.h:48
TCOD_Error TCOD_map_copy(const TCOD_Map *source, TCOD_Map *dest)
Clone map data from source to dest.
int TCOD_map_get_height(const TCOD_Map *map)
Return the height of map.
bool TCOD_map_is_transparent(const TCOD_Map *map, int x, int y)
Return true if this cell is transparent.
bool TCOD_map_is_in_fov(const TCOD_Map *map, int x, int y)
Return true if this cell was touched by the current field-of-view.
void TCOD_map_set_properties(TCOD_Map *map, int x, int y, bool is_transparent, bool is_walkable)
Change the properties of a single cell.
TCOD_Map * TCOD_map_new(int width, int height)
Return a new TCOD_Map with width and height.
int TCOD_map_get_nb_cells(const TCOD_Map *map)
Return the total number of cells in map.
TCOD_Error TCOD_map_compute_fov(TCOD_Map *map, int pov_x, int pov_y, int max_radius, bool light_walls, TCOD_fov_algorithm_t algo)
Calculate the field-of-view.
bool TCOD_map_is_walkable(TCOD_Map *map, int x, int y)
Return true if this cell is walkable.
void TCOD_map_clear(TCOD_Map *map, bool transparent, bool walkable)
Set all cell values on map to the given parameters.
TCOD_fov_algorithm_t
Definition fov_types.h:63
void TCOD_map_set_in_fov(TCOD_Map *map, int x, int y, bool fov)
Set the fov flag on a specific cell.
int TCOD_map_get_width(const TCOD_Map *map)
Return the width of map.
void TCOD_map_delete(TCOD_Map *map)
Free a TCOD_Map object.
Private map struct.
Definition fov_types.h:51