Public Types | |
enum | ErrorMessages { ERR_ORDER_BASE, ERR_ORDER_TOO_MANY, ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION, ERR_ORDER_AIRCRAFT_NOT_ENOUGH_RANGE } |
All order related error messages. More... | |
enum | AIOrderFlags { OF_NONE, OF_NON_STOP_INTERMEDIATE, OF_NON_STOP_DESTINATION, OF_UNLOAD, OF_TRANSFER, OF_NO_UNLOAD, OF_FULL_LOAD, OF_FULL_LOAD_ANY, OF_NO_LOAD, OF_SERVICE_IF_NEEDED, OF_STOP_IN_DEPOT, OF_GOTO_NEAREST_DEPOT, OF_NON_STOP_FLAGS, OF_UNLOAD_FLAGS, OF_LOAD_FLAGS, OF_DEPOT_FLAGS, OF_INVALID } |
Flags that can be used to modify the behaviour of orders. More... | |
enum | OrderCondition { OC_LOAD_PERCENTAGE, OC_RELIABILITY, OC_MAX_SPEED, OC_AGE, OC_REQUIRES_SERVICE, OC_UNCONDITIONALLY, OC_REMAINING_LIFETIME, OC_INVALID } |
All conditions a conditional order can depend on. More... | |
enum | CompareFunction { CF_EQUALS, CF_NOT_EQUALS, CF_LESS_THAN, CF_LESS_EQUALS, CF_MORE_THAN, CF_MORE_EQUALS, CF_IS_TRUE, CF_IS_FALSE, CF_INVALID } |
Comparators for conditional orders. More... | |
enum | OrderPosition { ORDER_CURRENT, ORDER_INVALID } |
Index in the list of orders for a vehicle. More... | |
enum | StopLocation { STOPLOCATION_NEAR, STOPLOCATION_MIDDLE, STOPLOCATION_FAR, STOPLOCATION_INVALID } |
Where to stop trains in a station that's longer than the train. More... | |
Static Public Member Functions | |
static bool | IsValidVehicleOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order id is valid for the given vehicle. | |
static bool | IsGotoStationOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order is a goto-station order. | |
static bool | IsGotoDepotOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order is a goto-depot order. | |
static bool | IsGotoWaypointOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order is a goto-waypoint order. | |
static bool | IsConditionalOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order is a conditional order. | |
static bool | IsVoidOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order is a void order. | |
static bool | IsRefitOrder (VehicleID vehicle_id, OrderPosition order_position) |
Checks whether the given order has a valid refit cargo. | |
static bool | IsCurrentOrderPartOfOrderList (VehicleID vehicle_id) |
Checks whether the current order is part of the orderlist. | |
static OrderPosition | ResolveOrderPosition (VehicleID vehicle_id, OrderPosition order_position) |
Resolves the given order index to the correct index for the given vehicle. | |
static bool | AreOrderFlagsValid (TileIndex destination, AIOrderFlags order_flags) |
Checks whether the given order flags are valid for the given destination. | |
static bool | IsValidConditionalOrder (OrderCondition condition, CompareFunction compare) |
Checks whether the given combination of condition and compare function is valid. | |
static int32 | GetOrderCount (VehicleID vehicle_id) |
Returns the number of orders for the given vehicle. | |
static TileIndex | GetOrderDestination (VehicleID vehicle_id, OrderPosition order_position) |
Gets the destination of the given order for the given vehicle. | |
static AIOrderFlags | GetOrderFlags (VehicleID vehicle_id, OrderPosition order_position) |
Gets the AIOrderFlags of the given order for the given vehicle. | |
static OrderPosition | GetOrderJumpTo (VehicleID vehicle_id, OrderPosition order_position) |
Gets the OrderPosition to jump to if the check succeeds of the given order for the given vehicle. | |
static OrderCondition | GetOrderCondition (VehicleID vehicle_id, OrderPosition order_position) |
Gets the OrderCondition of the given order for the given vehicle. | |
static CompareFunction | GetOrderCompareFunction (VehicleID vehicle_id, OrderPosition order_position) |
Gets the CompareFunction of the given order for the given vehicle. | |
static int32 | GetOrderCompareValue (VehicleID vehicle_id, OrderPosition order_position) |
Gets the value to compare against of the given order for the given vehicle. | |
static StopLocation | GetStopLocation (VehicleID vehicle_id, OrderPosition order_position) |
Gets the stoplocation of the given order for the given train. | |
static CargoID | GetOrderRefit (VehicleID vehicle_id, OrderPosition order_position) |
Gets the refit cargo type of the given order for the given vehicle. | |
static bool | SetOrderJumpTo (VehicleID vehicle_id, OrderPosition order_position, OrderPosition jump_to) |
Sets the OrderPosition to jump to if the check succeeds of the given order for the given vehicle. | |
static bool | SetOrderCondition (VehicleID vehicle_id, OrderPosition order_position, OrderCondition condition) |
Sets the OrderCondition of the given order for the given vehicle. | |
static bool | SetOrderCompareFunction (VehicleID vehicle_id, OrderPosition order_position, CompareFunction compare) |
Sets the CompareFunction of the given order for the given vehicle. | |
static bool | SetOrderCompareValue (VehicleID vehicle_id, OrderPosition order_position, int32 value) |
Sets the value to compare against of the given order for the given vehicle. | |
static bool | SetStopLocation (VehicleID vehicle_id, OrderPosition order_position, StopLocation stop_location) |
Sets the stoplocation of the given order for the given train. | |
static bool | SetOrderRefit (VehicleID vehicle_id, OrderPosition order_position, CargoID refit_cargo) |
Sets the refit cargo type of the given order for the given vehicle. | |
static bool | AppendOrder (VehicleID vehicle_id, TileIndex destination, AIOrderFlags order_flags) |
Appends an order to the end of the vehicle's order list. | |
static bool | AppendConditionalOrder (VehicleID vehicle_id, OrderPosition jump_to) |
Appends a conditional order to the end of the vehicle's order list. | |
static bool | InsertOrder (VehicleID vehicle_id, OrderPosition order_position, TileIndex destination, AIOrderFlags order_flags) |
Inserts an order before the given order_position into the vehicle's order list. | |
static bool | InsertConditionalOrder (VehicleID vehicle_id, OrderPosition order_position, OrderPosition jump_to) |
Appends a conditional order before the given order_position into the vehicle's order list. | |
static bool | RemoveOrder (VehicleID vehicle_id, OrderPosition order_position) |
Removes an order from the vehicle's order list. | |
static bool | SetOrderFlags (VehicleID vehicle_id, OrderPosition order_position, AIOrderFlags order_flags) |
Changes the order flags of the given order. | |
static bool | MoveOrder (VehicleID vehicle_id, OrderPosition order_position_move, OrderPosition order_position_target) |
Move an order inside the orderlist. | |
static bool | SkipToOrder (VehicleID vehicle_id, OrderPosition next_order) |
Make a vehicle execute next_order instead of its current order. | |
static bool | CopyOrders (VehicleID vehicle_id, VehicleID main_vehicle_id) |
Copies the orders from another vehicle. | |
static bool | ShareOrders (VehicleID vehicle_id, VehicleID main_vehicle_id) |
Shares the orders between two vehicles. | |
static bool | UnshareOrders (VehicleID vehicle_id) |
Removes the given vehicle from a shared orders list. | |
static uint | GetOrderDistance (AIVehicle::VehicleType vehicle_type, TileIndex origin_tile, TileIndex dest_tile) |
Get the distance between two points for a vehicle type. |
Flags that can be used to modify the behaviour of orders.
All conditions a conditional order can depend on.
OC_LOAD_PERCENTAGE | Skip based on the amount of load, value is in tons. |
OC_RELIABILITY | Skip based on the reliability, value is percent (0..100). |
OC_MAX_SPEED | Skip based on the maximum speed, value is in OpenTTD's internal speed unit, see AIEngine::GetMaxSpeed. |
OC_AGE | Skip based on the age, value is in years. |
OC_REQUIRES_SERVICE | Skip when the vehicle requires service, no value. |
OC_UNCONDITIONALLY | Always skip, no compare function, no value. |
OC_REMAINING_LIFETIME | Skip based on the remaining lifetime. |
OC_INVALID | An invalid condition, do not use. |
Comparators for conditional orders.
Index in the list of orders for a vehicle.
The first order has index 0, the second order index 1, etc. The current order can be queried by using ORDER_CURRENT. Do not use ORDER_INVALID yourself, it's used as return value by for example ResolveOrderPosition.
Where to stop trains in a station that's longer than the train.
static bool AIOrder::IsValidVehicleOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order id is valid for the given vehicle.
vehicle_id | The vehicle to check the order index for. | |
order_position | The order index to check. |
static bool AIOrder::IsGotoStationOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order is a goto-station order.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsGotoDepotOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order is a goto-depot order.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsGotoWaypointOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order is a goto-waypoint order.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsConditionalOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order is a conditional order.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsVoidOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order is a void order.
A void order is an order that used to be a goto station, depot or waypoint order but its destination got removed. In OpenTTD these orders as shown as "(Invalid Order)" in the order list of a vehicle.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsRefitOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Checks whether the given order has a valid refit cargo.
vehicle_id | The vehicle to check. | |
order_position | The order index to check. |
static bool AIOrder::IsCurrentOrderPartOfOrderList | ( | VehicleID | vehicle_id | ) | [static] |
Checks whether the current order is part of the orderlist.
vehicle_id | The vehicle to check. |
static OrderPosition AIOrder::ResolveOrderPosition | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Resolves the given order index to the correct index for the given vehicle.
If the order index was ORDER_CURRENT it will be resolved to the index of the current order (as shown in the order list). If the order with the given index does not exist it will return ORDER_INVALID.
vehicle_id | The vehicle to check the order index for. | |
order_position | The order index to resolve. |
static bool AIOrder::AreOrderFlagsValid | ( | TileIndex | destination, | |
AIOrderFlags | order_flags | |||
) | [static] |
Checks whether the given order flags are valid for the given destination.
destination | The destination of the order. | |
order_flags | The flags given to the order. |
static bool AIOrder::IsValidConditionalOrder | ( | OrderCondition | condition, | |
CompareFunction | compare | |||
) | [static] |
Checks whether the given combination of condition and compare function is valid.
condition | The condition to check. | |
compare | The compare function to check. |
static int32 AIOrder::GetOrderCount | ( | VehicleID | vehicle_id | ) | [static] |
Returns the number of orders for the given vehicle.
vehicle_id | The vehicle to get the order count of. |
static TileIndex AIOrder::GetOrderDestination | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the destination of the given order for the given vehicle.
vehicle_id | The vehicle to get the destination for. | |
order_position | The order to get the destination for. |
order_position == ORDER_CURRENT || !IsConditionalOrder(vehicle_id, order_position).
static AIOrderFlags AIOrder::GetOrderFlags | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the AIOrderFlags of the given order for the given vehicle.
vehicle_id | The vehicle to get the destination for. | |
order_position | The order to get the destination for. |
order_position == ORDER_CURRENT || (!IsConditionalOrder(vehicle_id, order_position) && !IsVoidOrder(vehicle_id, order_position)).
static OrderPosition AIOrder::GetOrderJumpTo | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the OrderPosition to jump to if the check succeeds of the given order for the given vehicle.
vehicle_id | The vehicle to get the OrderPosition for. | |
order_position | The order to get the OrderPosition for. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
static OrderCondition AIOrder::GetOrderCondition | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the OrderCondition of the given order for the given vehicle.
vehicle_id | The vehicle to get the condition type for. | |
order_position | The order to get the condition type for. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
static CompareFunction AIOrder::GetOrderCompareFunction | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the CompareFunction of the given order for the given vehicle.
vehicle_id | The vehicle to get the compare function for. | |
order_position | The order to get the compare function for. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
static int32 AIOrder::GetOrderCompareValue | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the value to compare against of the given order for the given vehicle.
vehicle_id | The vehicle to get the value for. | |
order_position | The order to get the value for. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
static StopLocation AIOrder::GetStopLocation | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the stoplocation of the given order for the given train.
vehicle_id | The vehicle to get the value for. | |
order_position | The order to get the value for. |
AIVehicle::GetVehicleType(vehicle_id) == AIVehicle::VT_RAIL.
IsGotoStationOrder(vehicle_id, order_position).
static CargoID AIOrder::GetOrderRefit | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Gets the refit cargo type of the given order for the given vehicle.
vehicle_id | The vehicle to get the refit cargo for. | |
order_position | The order to get the refit cargo for. |
order_position == ORDER_CURRENT || IsGotoStationOrder(vehicle_id, order_position) || IsGotoDepotOrder(vehicle_id, order_position).
static bool AIOrder::SetOrderJumpTo | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
OrderPosition | jump_to | |||
) | [static] |
Sets the OrderPosition to jump to if the check succeeds of the given order for the given vehicle.
vehicle_id | The vehicle to set the OrderPosition for. | |
order_position | The order to set the OrderPosition for. | |
jump_to | The order to jump to if the check succeeds. |
IsValidVehicleOrder(vehicle_id, jump_to).
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
static bool AIOrder::SetOrderCondition | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
OrderCondition | condition | |||
) | [static] |
Sets the OrderCondition of the given order for the given vehicle.
vehicle_id | The vehicle to set the condition type for. | |
order_position | The order to set the condition type for. | |
condition | The condition to compare on. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
condition >= OC_LOAD_PERCENTAGE && condition <= OC_UNCONDITIONALLY.
static bool AIOrder::SetOrderCompareFunction | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
CompareFunction | compare | |||
) | [static] |
Sets the CompareFunction of the given order for the given vehicle.
vehicle_id | The vehicle to set the compare function for. | |
order_position | The order to set the compare function for. | |
compare | The new compare function of the order. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
compare >= CF_EQUALS && compare <= CF_IS_FALSE.
static bool AIOrder::SetOrderCompareValue | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
int32 | value | |||
) | [static] |
Sets the value to compare against of the given order for the given vehicle.
vehicle_id | The vehicle to set the value for. | |
order_position | The order to set the value for. | |
value | The value to compare against. |
order_position != ORDER_CURRENT && IsConditionalOrder(vehicle_id, order_position).
value >= 0 && value < 2048.
static bool AIOrder::SetStopLocation | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
StopLocation | stop_location | |||
) | [static] |
Sets the stoplocation of the given order for the given train.
vehicle_id | The vehicle to get the value for. | |
order_position | The order to get the value for. | |
stop_location | The relative position where a train will stop inside a station. |
AIVehicle::GetVehicleType(vehicle_id) == AIVehicle::VT_RAIL.
IsGotoStationOrder(vehicle_id, order_position).
stop_location >= STOPLOCATION_NEAR && stop_location <= STOPLOCATION_FAR
static bool AIOrder::SetOrderRefit | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
CargoID | refit_cargo | |||
) | [static] |
Sets the refit cargo type of the given order for the given vehicle.
vehicle_id | The vehicle to set the refit cargo for. | |
order_position | The order to set the refit cargo for. | |
refit_cargo | The cargo to refit to. The refit can be cleared by passing CT_NO_REFIT. |
IsGotoStationOrder(vehicle_id, order_position) || (IsGotoDepotOrder(vehicle_id, order_position) && refit_cargo != CT_AUTO_REFIT).
AICargo::IsValidCargo(refit_cargo) || refit_cargo == CT_AUTO_REFIT || refit_cargo == CT_NO_REFIT
static bool AIOrder::AppendOrder | ( | VehicleID | vehicle_id, | |
TileIndex | destination, | |||
AIOrderFlags | order_flags | |||
) | [static] |
Appends an order to the end of the vehicle's order list.
vehicle_id | The vehicle to append the order to. | |
destination | The destination of the order. | |
order_flags | The flags given to the order. |
AreOrderFlagsValid(destination, order_flags).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY | ||
AIOrder::ERR_ORDER_TOO_MANY | ||
AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION |
static bool AIOrder::AppendConditionalOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | jump_to | |||
) | [static] |
Appends a conditional order to the end of the vehicle's order list.
vehicle_id | The vehicle to append the order to. | |
jump_to | The OrderPosition to jump to if the condition is true. |
IsValidVehicleOrder(vehicle_id, jump_to).
static bool AIOrder::InsertOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
TileIndex | destination, | |||
AIOrderFlags | order_flags | |||
) | [static] |
Inserts an order before the given order_position into the vehicle's order list.
vehicle_id | The vehicle to add the order to. | |
order_position | The order to place the new order before. | |
destination | The destination of the order. | |
order_flags | The flags given to the order. |
AreOrderFlagsValid(destination, order_flags).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY | ||
AIOrder::ERR_ORDER_TOO_MANY | ||
AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION |
static bool AIOrder::InsertConditionalOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
OrderPosition | jump_to | |||
) | [static] |
Appends a conditional order before the given order_position into the vehicle's order list.
vehicle_id | The vehicle to add the order to. | |
order_position | The order to place the new order before. | |
jump_to | The OrderPosition to jump to if the condition is true. |
IsValidVehicleOrder(vehicle_id, jump_to).
static bool AIOrder::RemoveOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position | |||
) | [static] |
Removes an order from the vehicle's order list.
vehicle_id | The vehicle to remove the order from. | |
order_position | The order to remove from the order list. |
AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
static bool AIOrder::SetOrderFlags | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position, | |||
AIOrderFlags | order_flags | |||
) | [static] |
Changes the order flags of the given order.
vehicle_id | The vehicle to change the order of. | |
order_position | The order to change. | |
order_flags | The new flags given to the order. |
AreOrderFlagsValid(GetOrderDestination(vehicle_id, order_position), order_flags).
(order_flags & OF_GOTO_NEAREST_DEPOT) == (GetOrderFlags(vehicle_id, order_position) & OF_GOTO_NEAREST_DEPOT).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
static bool AIOrder::MoveOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | order_position_move, | |||
OrderPosition | order_position_target | |||
) | [static] |
Move an order inside the orderlist.
vehicle_id | The vehicle to move the orders. | |
order_position_move | The order to move. | |
order_position_target | The target order |
IsValidVehicleOrder(vehicle_id, order_position_target).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
static bool AIOrder::SkipToOrder | ( | VehicleID | vehicle_id, | |
OrderPosition | next_order | |||
) | [static] |
Make a vehicle execute next_order instead of its current order.
vehicle_id | The vehicle that should skip some orders. | |
next_order | The order the vehicle should skip to. |
AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
static bool AIOrder::CopyOrders | ( | VehicleID | vehicle_id, | |
VehicleID | main_vehicle_id | |||
) | [static] |
Copies the orders from another vehicle.
The orders of the main vehicle are going to be the orders of the changed vehicle.
vehicle_id | The vehicle to copy the orders to. | |
main_vehicle_id | The vehicle to copy the orders from. |
AIVehicle::IsValidVehicle(main_vehicle_id).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY | ||
AIOrder::ERR_ORDER_TOO_MANY | ||
AIOrder::ERR_ORDER_AIRCRAFT_NOT_ENOUGH_RANGE |
static bool AIOrder::ShareOrders | ( | VehicleID | vehicle_id, | |
VehicleID | main_vehicle_id | |||
) | [static] |
Shares the orders between two vehicles.
The orders of the main vehicle are going to be the orders of the changed vehicle.
vehicle_id | The vehicle to add to the shared order list. | |
main_vehicle_id | The vehicle to share the orders with. |
AIVehicle::IsValidVehicle(main_vehicle_id).
AIError::ERR_OWNED_BY_ANOTHER_COMPANY | ||
AIOrder::ERR_ORDER_AIRCRAFT_NOT_ENOUGH_RANGE |
static bool AIOrder::UnshareOrders | ( | VehicleID | vehicle_id | ) | [static] |
Removes the given vehicle from a shared orders list.
vehicle_id | The vehicle to remove from the shared order list. |
static uint AIOrder::GetOrderDistance | ( | AIVehicle::VehicleType | vehicle_type, | |
TileIndex | origin_tile, | |||
TileIndex | dest_tile | |||
) | [static] |
Get the distance between two points for a vehicle type.
vehicle_type | The vehicle type to get the distance for. | |
origin_tile | Origin, can be any tile or a tile of a specific station. | |
dest_tile | Destination, ca be any tile or a tile of a specific station. |