9 MAX_BRIDGES = 13 |
9 MAX_BRIDGES = 13 |
10 }; |
10 }; |
11 |
11 |
12 /** Struct containing information about a single bridge type |
12 /** Struct containing information about a single bridge type |
13 */ |
13 */ |
14 typedef struct Bridge { |
14 struct Bridge { |
15 Year avail_year; ///< the year in which the bridge becomes available |
15 Year avail_year; ///< the year in which the bridge becomes available |
16 byte min_length; ///< the minimum length of the bridge (not counting start and end tile) |
16 byte min_length; ///< the minimum length of the bridge (not counting start and end tile) |
17 byte max_length; ///< the maximum length of the bridge (not counting start and end tile) |
17 byte max_length; ///< the maximum length of the bridge (not counting start and end tile) |
18 uint16 price; ///< the relative price of the bridge |
18 uint16 price; ///< the relative price of the bridge |
19 uint16 speed; ///< maximum travel speed |
19 uint16 speed; ///< maximum travel speed |
20 SpriteID sprite; ///< the sprite which is used in the GUI |
20 SpriteID sprite; ///< the sprite which is used in the GUI |
21 SpriteID pal; ///< the palette which is used in the GUI |
21 SpriteID pal; ///< the palette which is used in the GUI |
22 StringID material; ///< the string that contains the bridge description |
22 StringID material; ///< the string that contains the bridge description |
23 PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge |
23 PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge |
24 byte flags; ///< bit 0 set: disable drawing of far pillars. |
24 byte flags; ///< bit 0 set: disable drawing of far pillars. |
25 } Bridge; |
25 }; |
26 |
26 |
27 extern const Bridge orig_bridge[MAX_BRIDGES]; |
27 extern const Bridge orig_bridge[MAX_BRIDGES]; |
28 extern Bridge _bridge[MAX_BRIDGES]; |
28 extern Bridge _bridge[MAX_BRIDGES]; |
29 |
29 |
30 uint GetBridgeFoundation(Slope tileh, Axis axis); |
30 uint GetBridgeFoundation(Slope tileh, Axis axis); |