16 typedef uint BridgeType; |
16 typedef uint BridgeType; |
17 |
17 |
18 /** Struct containing information about a single bridge type |
18 /** Struct containing information about a single bridge type |
19 */ |
19 */ |
20 struct BridgeSpec { |
20 struct BridgeSpec { |
21 Year avail_year; ///< the year where it becomes available |
21 Year avail_year; ///< the year where it becomes available |
22 byte min_length; ///< the minimum length (not counting start and end tile) |
22 byte min_length; ///< the minimum length (not counting start and end tile) |
23 byte max_length; ///< the maximum length (not counting start and end tile) |
23 byte max_length; ///< the maximum length (not counting start and end tile) |
24 uint16 price; ///< the price multiplier |
24 uint16 price; ///< the price multiplier |
25 uint16 speed; ///< maximum travel speed |
25 uint16 speed; ///< maximum travel speed |
26 SpriteID sprite; ///< the sprite which is used in the GUI |
26 SpriteID sprite; ///< the sprite which is used in the GUI |
27 SpriteID pal; ///< the palette which is used in the GUI |
27 SpriteID pal; ///< the palette which is used in the GUI |
28 StringID material; ///< the string that contains the bridge description |
28 StringID material; ///< the string that contains the bridge description |
29 StringID name_rail; ///< description of the bridge, when built for road |
29 StringID transport_name[2]; ///< description of the bridge, when built for road or rail |
30 StringID name_road; ///< description of the bridge, when built for road |
30 PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge |
31 PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge |
31 byte flags; ///< bit 0 set: disable drawing of far pillars. |
32 byte flags; ///< bit 0 set: disable drawing of far pillars. |
|
33 }; |
32 }; |
34 |
33 |
35 extern BridgeSpec _bridge[MAX_BRIDGES]; |
34 extern BridgeSpec _bridge[MAX_BRIDGES]; |
36 |
35 |
37 Foundation GetBridgeFoundation(Slope tileh, Axis axis); |
36 Foundation GetBridgeFoundation(Slope tileh, Axis axis); |