static */
| 136 | } |
| 137 | |
| 138 | /* static */ bool ScriptOrder::IsConditionalOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 139 | { |
| 140 | if (order_position == ORDER_CURRENT) return false; |
| 141 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return false; |
| 142 | |
| 143 | const Order *order = ::Vehicle::Get(vehicle_id)->GetOrder(ScriptOrderPositionToRealOrderPosition(vehicle_id, order_position)); |
| 144 | assert(order != nullptr); |
| 145 | return order->GetType() == OT_CONDITIONAL; |
| 146 | } |
| 147 | |
| 148 | /* static */ bool ScriptOrder::IsVoidOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 149 | { |
nothing calls this directly
no test coverage detected