Files @ r6582:0b46f6cf62fa
Branch filter:

Location: cpp/openttd-patchpack/source/src/landscape.h

miham
(svn r9796) -Update: WebTranslator2 update to 2007-05-06 19:05:33
brazilian_portuguese - 10 fixed by tucalipe (10)
bulgarian - 5 fixed by thetitan (5)
catalan - 9 fixed by arnaullv (9)
czech - 9 fixed by Hadez (9)
esperanto - 11 fixed by LaPingvino (11)
finnish - 11 fixed by habazi (11)
french - 9 fixed by belugas (9)
german - 9 fixed by Neonox (9)
hungarian - 9 fixed by miham (9)
italian - 9 fixed by lorenzodv (9)
japanese - 2 fixed by ickoonite (2)
korean - 9 fixed by darkttd (9)
norwegian_nynorsk - 11 fixed by pollux (11)
polish - 8 fixed by meush (8)
portuguese - 21 fixed, 6 changed by supra90 (27)
romanian - 11 fixed by kneekoo (11)
spanish - 2 fixed by eusebio (2)
swedish - 11 fixed by giddorah (11)
traditional_chinese - 11 fixed, 2 changed by xbddc (13)
turkish - 8 fixed by jnmbk (8)
ukrainian - 11 fixed by mad (11)
/* $Id$ */

/** @file landscape.h */

#ifndef LANDSCAPE_H
#define LANDSCAPE_H

enum {
	SNOW_LINE_MONTHS = 12,
	SNOW_LINE_DAYS   = 32,
};

struct SnowLine {
	byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS];
	byte highest_value;
};

bool IsSnowLineSet(void);
void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]);
byte GetSnowLine(void);
byte HighestSnowLine(void);
void ClearSnowLine(void);

bool IsValidTile(TileIndex tile);

uint GetPartialZ(int x, int y, Slope corners);
uint GetSlopeZ(int x, int y);

static inline Point RemapCoords(int x, int y, int z)
{
	Point pt;
	pt.x = (y - x) * 2;
	pt.y = y + x - z;
	return pt;
}

static inline Point RemapCoords2(int x, int y)
{
	return RemapCoords(x, y, GetSlopeZ(x, y));
}

void DrawFoundation(TileInfo *ti, uint f);

void DoClearSquare(TileIndex tile);
void RunTileLoop();

uint32 GetTileTrackStatus(TileIndex tile, TransportType mode);
void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac);
void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player);
void AnimateTile(TileIndex tile);
void ClickTile(TileIndex tile);
void GetTileDesc(TileIndex tile, TileDesc *td);

void InitializeLandscape();
void GenerateLandscape(byte mode);

void ConvertGroundTilesIntoWaterTiles();

TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);

#endif /* LANDSCAPE_H */