![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "log.h"#include "map.h"#include "height_map.h"#include "mapgen_topology.h"#include "mapgen_utils.h"#include "temperature_map.h"
Include dependency graph for temperature_map.cpp:Go to the source code of this file.
Macros | |
| #define | tmap(_tile) (temperature_map[tile_index(_tile)]) |
Functions | |
| bool | temperature_is_initialized () |
| Returns one line (given by the y coordinate) of the temperature map. More... | |
| bool | tmap_is (const struct tile *ptile, temperature_type tt) |
| Return true if the tile has tt temperature type. More... | |
| bool | is_temperature_type_near (const struct tile *ptile, temperature_type tt) |
| Return true if at least one tile has tt temperature type. More... | |
| void | destroy_tmap () |
| Free the tmap. More... | |
| void | create_tmap (bool real) |
| Initialize the temperature_map if arg is FALSE, create a dummy tmap == map_colatitude to be used if hmap or oceans are not placed gen 2-4. More... | |
Variables | |
| static int * | temperature_map |
| #define tmap | ( | _tile | ) | (temperature_map[tile_index(_tile)]) |
Definition at line 27 of file temperature_map.cpp.
| void create_tmap | ( | bool | real | ) |
Initialize the temperature_map if arg is FALSE, create a dummy tmap == map_colatitude to be used if hmap or oceans are not placed gen 2-4.
Definition at line 112 of file temperature_map.cpp.
Referenced by create_start_positions(), make_land(), and map_generate().
| void destroy_tmap | ( | ) |
Free the tmap.
Definition at line 100 of file temperature_map.cpp.
Referenced by create_start_positions(), make_land(), and map_generate().
| bool is_temperature_type_near | ( | const struct tile * | ptile, |
| temperature_type | tt | ||
| ) |
Return true if at least one tile has tt temperature type.
Definition at line 84 of file temperature_map.cpp.
Referenced by make_land(), make_polar(), and make_polar_land().
| bool temperature_is_initialized | ( | ) |
Returns one line (given by the y coordinate) of the temperature map.
Return TRUE if temperateure_map is initialized
Definition at line 71 of file temperature_map.cpp.
Referenced by create_start_positions(), and map_generate().
| bool tmap_is | ( | const struct tile * | ptile, |
| temperature_type | tt | ||
| ) |
Return true if the tile has tt temperature type.
Definition at line 76 of file temperature_map.cpp.
Referenced by condition_filter(), fill_island(), is_valid_start_pos(), make_land(), make_plain(), make_polar(), make_polar_land(), make_relief(), and place_terrain().
|
static |
Definition at line 25 of file temperature_map.cpp.
Referenced by create_tmap(), destroy_tmap(), and temperature_is_initialized().