Ejemplo n.º 1
0
 /**
  * Get the minimum length of a bridge.
  * @param bridge_id The bridge to get the minimum length of.
  * @returns The minimum length the bridge has.
  */
 public static int GetMinLength(BridgeID bridge_id)
 {
     throw null;
 }
Ejemplo n.º 2
0
 /**
  * Get the new cost of a bridge, excluding the road and/or rail.
  * @param bridge_id The bridge to get the new cost of.
  * @param length The length of the bridge.
  * @returns The new cost the bridge has.
  */
 public static long GetPrice(BridgeID bridge_id, int length)
 {
     throw null;
 }
Ejemplo n.º 3
0
 /**
  * Get the maximum speed of a bridge.
  * @param bridge_id The bridge to get the maximum speed of.
  * @returns The maximum speed the bridge has.
  * @note The speed is in OpenTTD's internal speed unit.
  *       This is mph / 1.6, which is roughly km/h.
  *       To get km/h multiply this number by 1.00584.
  */
 public static int GetMaxSpeed(BridgeID bridge_id)
 {
     throw null;
 }
Ejemplo n.º 4
0
 /**
  * Get the name of a bridge.
  * @param bridge_id The bridge to get the name of.
  * @returns The name the bridge has.
  */
 public static string GetName(BridgeID bridge_id)
 {
     throw null;
 }
Ejemplo n.º 5
0
 /**
  * Checks whether the given bridge type is valid.
  * @param bridge_id The bridge to check.
  * @returns True if and only if the bridge type is valid.
  */
 public static bool IsValidBridge(BridgeID bridge_id)
 {
     throw null;
 }
Ejemplo n.º 6
0
 /**
  * Build a bridge from one tile to the other.
  * As an extra for road, this functions builds two half-pieces of road on
  *  each end of the bridge, making it easier for you to connect it to your
  *  network.
  * @param vehicle_type The vehicle-type of bridge to build.
  * @param bridge_id The bridge-type to build.
  * @param start Where to start the bridge.
  * @param end Where to end the bridge.
  * @exception AIError.ERR_ALREADY_BUILT
  * @exception AIError.ERR_AREA_NOT_CLEAR
  * @exception AIError.ERR_LAND_SLOPED_WRONG
  * @exception AIError.ERR_VEHICLE_IN_THE_WAY
  * @exception AIBridge.ERR_BRIDGE_TYPE_UNAVAILABLE
  * @exception AIBridge.ERR_BRIDGE_CANNOT_END_IN_WATER
  * @exception AIBridge.ERR_BRIDGE_HEADS_NOT_ON_SAME_HEIGHT
  * @returns Whether the bridge has been/can be build or not.
  * @note No matter if the road pieces were build or not, if building the
  *  bridge succeeded, this function returns true.
  */
 public static bool BuildBridge(VehicleType vehicle_type, BridgeID bridge_id, TileIndex start, TileIndex end)
 {
     throw null;
 }