67 * Get the maximum speed of a bridge (in km/h). |
67 * Get the maximum speed of a bridge (in km/h). |
68 * @param bridge_id The bridge to get the maximum speed of. |
68 * @param bridge_id The bridge to get the maximum speed of. |
69 * @pre IsValidBridge(bridge_id). |
69 * @pre IsValidBridge(bridge_id). |
70 * @return The maximum speed the bridge has. |
70 * @return The maximum speed the bridge has. |
71 */ |
71 */ |
72 static uint32 GetMaxSpeed(BridgeID bridge_id); |
72 static int32 GetMaxSpeed(BridgeID bridge_id); |
73 |
73 |
74 /** |
74 /** |
75 * Get the new cost of a bridge. |
75 * Get the new cost of a bridge. |
76 * @param bridge_id The bridge to get the new cost of. |
76 * @param bridge_id The bridge to get the new cost of. |
77 * @param length The length of the bridge. |
77 * @param length The length of the bridge. |
78 * @pre IsValidBridge(bridge_id). |
78 * @pre IsValidBridge(bridge_id). |
79 * @return The new cost the bridge has. |
79 * @return The new cost the bridge has. |
80 */ |
80 */ |
81 static uint32 GetPrice(BridgeID bridge_id, uint length); |
81 static int32 GetPrice(BridgeID bridge_id, uint length); |
82 |
82 |
83 /** |
83 /** |
84 * Get the maximum length of a bridge. |
84 * Get the maximum length of a bridge. |
85 * @param bridge_id The bridge to get the maximum length of. |
85 * @param bridge_id The bridge to get the maximum length of. |
86 * @pre IsValidBridge(bridge_id). |
86 * @pre IsValidBridge(bridge_id). |
87 * @returns The maximum length the bridge has. |
87 * @returns The maximum length the bridge has. |
88 */ |
88 */ |
89 static uint32 GetMaxLength(BridgeID bridge_id); |
89 static int32 GetMaxLength(BridgeID bridge_id); |
90 |
90 |
91 /** |
91 /** |
92 * Get the minimum length of a bridge. |
92 * Get the minimum length of a bridge. |
93 * @param bridge_id The bridge to get the minimum length of. |
93 * @param bridge_id The bridge to get the minimum length of. |
94 * @pre IsValidBridge(bridge_id). |
94 * @pre IsValidBridge(bridge_id). |
95 * @returns The minimum length the bridge has. |
95 * @returns The minimum length the bridge has. |
96 */ |
96 */ |
97 static uint32 GetMinLength(BridgeID bridge_id); |
97 static int32 GetMinLength(BridgeID bridge_id); |
98 |
98 |
99 /** |
99 /** |
100 * Get the year in which a bridge becomes available. |
100 * Get the year in which a bridge becomes available. |
101 * @param bridge_id The bridge to get the year of availability of. |
101 * @param bridge_id The bridge to get the year of availability of. |
102 * @pre IsValidBridge(bridge_id). |
102 * @pre IsValidBridge(bridge_id). |