bridge.h
author miham
Wed, 27 Dec 2006 13:24:36 +0000
changeset 5386 c16ec5d9c6ea
parent 5385 3868f2e6db9b
permissions -rw-r--r--
(svn r7574) WebTranslator2 update to 2006-12-27 14:23:53
bulgarian - 7 fixed, 55 changed by kokobongo (62)
catalan - 2 changed by arnaullv (2)
estonian - 26 fixed by kristjans (26)
lithuanian - 10 fixed by Plyta (10)
norwegian - 53 fixed by oletk (53)
slovak - 2 fixed by lengyel (2)
turkish - 3 fixed by jnmbk (3)
ukrainian - 28 fixed by znikoz (28)
/* $Id$ */

/** @file bridge.h Header file for bridges */

#ifndef BRIDGE_H
#define BRIDGE_H

enum {
	MAX_BRIDGES = 13
};

/** Struct containing information about a single bridge type
 */
typedef struct Bridge {
	Year avail_year;     ///< the year in which the bridge becomes available
	byte min_length;     ///< the minimum length of the bridge (not counting start and end tile)
	byte max_length;     ///< the maximum length of the bridge (not counting start and end tile)
	uint16 price;        ///< the relative price of the bridge
	uint16 speed;        ///< maximum travel speed
	PalSpriteID sprite;  ///< the sprite which is used in the GUI (possibly with a recolor sprite)
	StringID material;   ///< the string that contains the bridge description
	PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge
	byte flags;          ///< bit 0 set: disable drawing of far pillars.
} Bridge;

extern const Bridge orig_bridge[MAX_BRIDGES];
extern Bridge _bridge[MAX_BRIDGES];

uint GetBridgeFoundation(Slope tileh, Axis axis);
uint SetSpeedLimitOnBridge(Vehicle *);

#endif /* BRIDGE_H */