Freeciv-3.3
|
#include "support.h"
Go to the source code of this file.
Macros | |
#define | TT_FROZEN 1 |
#define | TT_COLD 2 |
#define | TT_TEMPERATE 4 |
#define | TT_TROPICAL 8 |
#define | TT_NFROZEN (TT_COLD | TT_TEMPERATE | TT_TROPICAL) |
#define | TT_ALL (TT_FROZEN | TT_NFROZEN) |
#define | TT_NHOT (TT_FROZEN | TT_COLD) |
#define | TT_HOT (TT_TEMPERATE | TT_TROPICAL) |
Typedefs | |
typedef int | temperature_type |
Functions | |
bool | temperature_is_initialized (void) |
bool | tmap_is (const struct tile *ptile, temperature_type tt) |
bool | is_temperature_type_near (const struct tile *ptile, temperature_type tt) |
void | destroy_tmap (void) |
void | create_tmap (bool real) |
#define TT_ALL (TT_FROZEN | TT_NFROZEN) |
Definition at line 32 of file temperature_map.h.
#define TT_COLD 2 |
Definition at line 27 of file temperature_map.h.
#define TT_FROZEN 1 |
Definition at line 26 of file temperature_map.h.
#define TT_HOT (TT_TEMPERATE | TT_TROPICAL) |
Definition at line 34 of file temperature_map.h.
#define TT_NFROZEN (TT_COLD | TT_TEMPERATE | TT_TROPICAL) |
Definition at line 31 of file temperature_map.h.
Definition at line 33 of file temperature_map.h.
#define TT_TEMPERATE 4 |
Definition at line 28 of file temperature_map.h.
#define TT_TROPICAL 8 |
Definition at line 29 of file temperature_map.h.
Definition at line 24 of file temperature_map.h.
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 119 of file temperature_map.c.
Referenced by create_start_positions(), make_land(), and map_fractal_generate().
Free the tmap
Definition at line 107 of file temperature_map.c.
Referenced by create_start_positions(), make_land(), and map_fractal_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 93 of file temperature_map.c.
Referenced by make_land(), make_polar(), and make_polar_land().
Returns one line (given by the y coordinate) of the temperature map. Return TRUE if temperateure_map is initialized
Definition at line 77 of file temperature_map.c.
Referenced by create_start_positions(), and map_fractal_generate().
bool tmap_is | ( | const struct tile * | ptile, |
temperature_type | tt | ||
) |
Return true if the tile has tt temperature type
Definition at line 85 of file temperature_map.c.
Referenced by condition_filter(), fill_island(), is_valid_start_pos(), make_land(), make_plain(), make_polar(), make_polar_land(), make_relief(), and place_terrain().