13#ifndef FC__MAPGEN_TOPOLOGY_H
14#define FC__MAPGEN_TOPOLOGY_H
21#define MAX_COLATITUDE MAP_MAX_LATITUDE
23#if MAX_COLATITUDE == MAP_MAX_LATITUDE
24#define colat_from_abs_lat(_lat) (MAX_COLATITUDE - _lat)
26#define colat_from_abs_lat(_lat) \
27 (MAX_COLATITUDE - (_lat * MAX_COLATITUDE / MAP_MAX_LATITUDE))
31#define MAX_REAL_COLATITUDE(_nmap) \
32 colat_from_abs_lat(MAP_MIN_ABS_LATITUDE(_nmap))
33#define MIN_REAL_COLATITUDE(_nmap) \
34 colat_from_abs_lat(MAP_MAX_ABS_LATITUDE(_nmap))
35#define REAL_COLATITUDE_RANGE(_nmap) \
36 (MAX_REAL_COLATITUDE(_nmap) - MIN_REAL_COLATITUDE(_nmap))
42#define L_UNIT MAX(1, wld.map.server.size * MAX_COLATITUDE / (30 * get_sqsize()))
51 (MAX(0, MAX_COLATITUDE * (60*7 - wld.map.server.temperature * 6 ) / 700))
52#define TROPICAL_LEVEL \
53 (MIN(MAX_COLATITUDE * 9 /10, \
54 MAX_COLATITUDE * (143*7 - wld.map.server.temperature * 10) / 700))
55#define DRY_MIN_LEVEL \
56 (MAX_COLATITUDE * (7300 - wld.map.server.temperature * 18 ) / 10000)
57#define DRY_MAX_LEVEL \
58 (MAX_COLATITUDE * (7300 + wld.map.server.temperature * 17 ) / 10000)
63#define ICE_BASE_LEVEL ice_base_colatitude
void generator_init_topology(bool autosize)
int map_colatitude(const struct tile *ptile)
bool near_singularity(const struct tile *ptile)