static */
| 120 | } |
| 121 | |
| 122 | /* static */ bool ScriptOrder::IsGotoDepotOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 123 | { |
| 124 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return false; |
| 125 | |
| 126 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 127 | return order != nullptr && order->GetType() == OT_GOTO_DEPOT; |
| 128 | } |
| 129 | |
| 130 | /* static */ bool ScriptOrder::IsGotoWaypointOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 131 | { |
nothing calls this directly
no test coverage detected