static */
| 326 | } |
| 327 | |
| 328 | /* static */ ScriptOrder::OrderPosition ScriptOrder::GetOrderJumpTo(VehicleID vehicle_id, OrderPosition order_position) |
| 329 | { |
| 330 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return ORDER_INVALID; |
| 331 | if (order_position == ORDER_CURRENT || !IsConditionalOrder(vehicle_id, order_position)) return ORDER_INVALID; |
| 332 | |
| 333 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 334 | return ::RealOrderPositionToScriptOrderPosition(vehicle_id, order->GetConditionSkipToOrder()); |
| 335 | } |
| 336 | |
| 337 | /* static */ ScriptOrder::OrderCondition ScriptOrder::GetOrderCondition(VehicleID vehicle_id, OrderPosition order_position) |
| 338 | { |
nothing calls this directly
no test coverage detected