Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle type (#6988)

This commit is contained in:
SamuXarick
2019-01-31 23:08:03 +00:00
committed by Charles Pigott
parent 029c48cf4a
commit 1e5a6765d9
25 changed files with 214 additions and 21 deletions

View File

@@ -66,10 +66,12 @@ public:
/**
* Get the name of a bridge.
* @param bridge_id The bridge to get the name of.
* @param vehicle_type The vehicle-type of bridge to get the name of.
* @pre IsValidBridge(bridge_id).
* @pre vehicle_type == ScriptVehicle::VT_ROAD || vehicle_type == ScriptVehicle::VT_RAIL || vehicle_type == ScriptVehicle::VT_WATER
* @return The name the bridge has.
*/
static char *GetName(BridgeID bridge_id);
static char *GetName(BridgeID bridge_id, ScriptVehicle::VehicleType vehicle_type);
/**
* Get the maximum speed of a bridge.