~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/landscape.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: landscape.h 12303 2008-02-28 00:10:08Z glx $ */
 
1
/* $Id: landscape.h 15582 2009-02-25 21:24:42Z frosch $ */
2
2
 
3
 
/** @file landscape.h */
 
3
/** @file landscape.h Functions related to OTTD's landscape. */
4
4
 
5
5
#ifndef LANDSCAPE_H
6
6
#define LANDSCAPE_H
11
11
#include "direction_type.h"
12
12
 
13
13
enum {
14
 
        SNOW_LINE_MONTHS = 12,
15
 
        SNOW_LINE_DAYS   = 32,
 
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.
16
16
};
17
17
 
 
18
/** Structure describing the height of the snow line each day of the year
 
19
 * @ingroup SnowLineGroup */
18
20
struct SnowLine {
19
 
        byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS];
20
 
        byte highest_value;
 
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
21
24
};
22
25
 
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);
28
32
 
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);
34
38
 
35
39
static inline Point RemapCoords(int x, int y, int z)
36
40
{
54
58
void InitializeLandscape();
55
59
void GenerateLandscape(byte mode);
56
60
 
57
 
TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);
58
 
 
59
61
#endif /* LANDSCAPE_H */