Add scripting API control over unit 'stay'
[freeciv.git] / server / generator / temperature_map.h
blob1846f9501bec4918300ad6482a05441a42b0b6f2
1 /***********************************************************************
2 Freeciv - Copyright (C) 2004 - Marcelo J. Burda
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__TEMPERATURE_MAP_H
14 #define FC__TEMPERATURE_MAP_H
16 /* utility */
17 #include "support.h" /* bool type */
20 * temperature_map[] stores the temperature of each tile
21 * values on tmap can get one of these 4 values
22 * there is 4 extra values as macros combining the 4 basics ones
24 typedef int temperature_type;
26 #define TT_FROZEN 1
27 #define TT_COLD 2
28 #define TT_TEMPERATE 4
29 #define TT_TROPICAL 8
31 #define TT_NFROZEN (TT_COLD | TT_TEMPERATE | TT_TROPICAL)
32 #define TT_ALL (TT_FROZEN | TT_NFROZEN)
33 #define TT_NHOT (TT_FROZEN | TT_COLD)
34 #define TT_HOT (TT_TEMPERATE | TT_TROPICAL)
36 bool temperature_is_initialized(void);
37 bool tmap_is(const struct tile *ptile, temperature_type tt);
38 bool is_temperature_type_near(const struct tile *ptile, temperature_type tt);
39 void destroy_tmap(void);
40 void create_tmap(bool real);
42 #endif /* FC__TEMPERATURE_MAP_H */