static */
| 112 | } |
| 113 | |
| 114 | /* static */ bool ScriptOrder::IsGotoStationOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 115 | { |
| 116 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return false; |
| 117 | |
| 118 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 119 | return order != nullptr && order->GetType() == OT_GOTO_STATION; |
| 120 | } |
| 121 | |
| 122 | /* static */ bool ScriptOrder::IsGotoDepotOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 123 | { |
nothing calls this directly
no test coverage detected