11
11
#include "direction_type.h"
14
SNOW_LINE_MONTHS = 12,
14
SNOW_LINE_MONTHS = 12, ///< Number of months in the snow line table.
15
SNOW_LINE_DAYS = 32, ///< Number of days in each month in the snow line table.
18
/** Structure describing the height of the snow line each day of the year
19
* @ingroup SnowLineGroup */
19
byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS];
21
byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]; ///< Height of the snow line each day of the year
22
byte highest_value; ///< Highest snow line of the year
23
byte lowest_value; ///< Lowest snow line of the year
23
26
bool IsSnowLineSet(void);
24
27
void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]);
25
28
byte GetSnowLine(void);
26
29
byte HighestSnowLine(void);
30
byte LowestSnowLine(void);
27
31
void ClearSnowLine(void);
29
33
uint GetPartialZ(int x, int y, Slope corners);
30
34
uint GetSlopeZ(int x, int y);
31
35
void GetSlopeZOnEdge(Slope tileh, DiagDirection edge, int *z1, int *z2);
32
36
int GetSlopeZInCorner(Slope tileh, Corner corner);
33
Slope GetFoundationSlope(TileIndex tile, uint* z);
37
Slope GetFoundationSlope(TileIndex tile, uint *z);
35
39
static inline Point RemapCoords(int x, int y, int z)