|
libtcod
|
Field-of-view module. More...
#include <stdbool.h>#include <memory>#include "config.h"#include "error.h"#include "fov_types.h"Go to the source code of this file.
Functions | |
| TCOD_Map * | TCOD_map_new (int width, int height) |
| Return a new TCOD_Map with width and height. | |
| void | TCOD_map_clear (TCOD_Map *map, bool transparent, bool walkable) |
| Set all cell values on map to the given parameters. | |
| TCOD_Error | TCOD_map_copy (const TCOD_Map *source, TCOD_Map *dest) |
| Clone map data from source to dest. | |
| 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. | |
| void | TCOD_map_delete (TCOD_Map *map) |
| Free a TCOD_Map object. | |
| 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_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_in_fov (TCOD_Map *map, int x, int y, bool fov) |
| Set the fov flag on a specific cell. | |
| bool | TCOD_map_is_transparent (const TCOD_Map *map, int x, int y) |
| Return true if this cell is transparent. | |
| bool | TCOD_map_is_walkable (TCOD_Map *map, int x, int y) |
| Return true if this cell is walkable. | |
| int | TCOD_map_get_width (const TCOD_Map *map) |
| Return the width of map. | |
| int | TCOD_map_get_height (const TCOD_Map *map) |
| Return the height of map. | |
| int | TCOD_map_get_nb_cells (const TCOD_Map *map) |
| Return the total number of cells in map. | |
Field-of-view module.