![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "support.h"
Include dependency graph for mapgen_topology.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MAX_COLATITUDE 1000 |
| #define | L_UNIT MAX(1, wld.map.server.size *MAX_COLATITUDE / (30 * get_sqsize())) |
| #define | COLD_LEVEL (MAX(0, MAX_COLATITUDE * (60 * 7 - wld.map.server.temperature * 6) / 700)) |
| #define | TROPICAL_LEVEL |
| #define | DRY_MIN_LEVEL (MAX_COLATITUDE * (7300 - wld.map.server.temperature * 18) / 10000) |
| #define | DRY_MAX_LEVEL (MAX_COLATITUDE * (7300 + wld.map.server.temperature * 17) / 10000) |
| #define | ICE_BASE_LEVEL ice_base_colatitude |
Functions | |
| int | get_sqsize () |
| An estimate of the linear (1-dimensional) size of the map. More... | |
| int | map_colatitude (const struct tile *ptile) |
| Returns the colatitude of this map position. More... | |
| bool | near_singularity (const struct tile *ptile) |
| Return TRUE if the map in a typical city radius is SINGULAR. More... | |
| void | generator_init_topology (bool autosize) |
| This function sets sizes in a topology-specific way then calls map_init_topology(). More... | |
Variables | |
| int | ice_base_colatitude |
| #define COLD_LEVEL (MAX(0, MAX_COLATITUDE * (60 * 7 - wld.map.server.temperature * 6) / 700)) |
Definition at line 36 of file mapgen_topology.h.
| #define DRY_MAX_LEVEL (MAX_COLATITUDE * (7300 + wld.map.server.temperature * 17) / 10000) |
Definition at line 43 of file mapgen_topology.h.
| #define DRY_MIN_LEVEL (MAX_COLATITUDE * (7300 - wld.map.server.temperature * 18) / 10000) |
Definition at line 41 of file mapgen_topology.h.
| #define ICE_BASE_LEVEL ice_base_colatitude |
Definition at line 49 of file mapgen_topology.h.
| #define L_UNIT MAX(1, wld.map.server.size *MAX_COLATITUDE / (30 * get_sqsize())) |
Definition at line 27 of file mapgen_topology.h.
| #define MAX_COLATITUDE 1000 |
Definition at line 21 of file mapgen_topology.h.
| #define TROPICAL_LEVEL |
Definition at line 38 of file mapgen_topology.h.
| void generator_init_topology | ( | bool | autosize | ) |
This function sets sizes in a topology-specific way then calls map_init_topology().
Set 'autosize' to TRUE if the xsize/ysize should be calculated.
Definition at line 285 of file mapgen_topology.cpp.
Referenced by map_generate().
| int get_sqsize | ( | ) |
An estimate of the linear (1-dimensional) size of the map.
Definition at line 399 of file mapgen_topology.cpp.
Referenced by generator_init_topology(), make_fracture_hmap(), and make_random_hmap().
| int map_colatitude | ( | const struct tile * | ptile | ) |
Returns the colatitude of this map position.
This is a value in the range of 0 to MAX_COLATITUDE (inclusive). This function is wanted to concentrate the topology information all generator code has to use colatitude and others topology safe functions instead (x,y) coordinate to place terrains colatitude is 0 at poles and MAX_COLATITUDE at equator
Definition at line 32 of file mapgen_topology.cpp.
Referenced by create_tmap(), hmap_pole_factor(), make_pseudofractal_hmap(), make_river(), normalize_hmap_poles(), place_terrain(), and renormalize_hmap_poles().
| bool near_singularity | ( | const struct tile * | ptile | ) |
Return TRUE if the map in a typical city radius is SINGULAR.
This is used to avoid putting (non-polar) land near the edge of the map.
Definition at line 171 of file mapgen_topology.cpp.
Referenced by create_island(), hmap_pole_factor(), make_pseudofractal_hmap(), and normalize_hmap_poles().
|
extern |
Definition at line 22 of file mapgen_topology.cpp.
Referenced by generator_init_topology().