27 #define tmap(_tile) (temperature_map[tile_index(_tile)])
33 static char *tmap_y2str(
int ycoor)
140 tmap(ptile) = t * (1.0 + temperate) * (1.0 + height);
166 log_debug(
"%stemperature map ({f}rozen, {c}old, {m}edium, {t}ropical):",
167 real ?
"real " :
"");
#define fc_assert_ret(condition)
#define log_debug(message,...)
#define MAP_MAX_LINEAR_SIZE
#define adjc_iterate(nmap, center_tile, itr_tile)
#define whole_map_iterate(_map, _tile)
#define whole_map_iterate_end
int map_colatitude(const struct tile *ptile)
Returns the colatitude of this map position.
#define adjust_int_map(int_map, int_map_max)
struct civ_map::@39::@41 server
bool temperature_is_initialized()
Returns one line (given by the y coordinate) of the temperature map.
bool tmap_is(const struct tile *ptile, temperature_type tt)
Return true if the tile has tt temperature type.
static int * temperature_map
void destroy_tmap()
Free the tmap.
bool is_temperature_type_near(const struct tile *ptile, temperature_type tt)
Return true if at least one tile has tt temperature type.
void create_tmap(bool real)
Initialize the temperature_map if arg is FALSE, create a dummy tmap == map_colatitude to be used if h...
int count_terrain_class_near_tile(const struct tile *ptile, bool cardinal_only, bool percentage, enum terrain_class tclass)
Return the number of adjacent tiles that have given terrain class (not including ptile itself).