static */
| 344 | } |
| 345 | |
| 346 | /* static */ ScriptOrder::CompareFunction ScriptOrder::GetOrderCompareFunction(VehicleID vehicle_id, OrderPosition order_position) |
| 347 | { |
| 348 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return CF_INVALID; |
| 349 | if (order_position == ORDER_CURRENT || !IsConditionalOrder(vehicle_id, order_position)) return CF_INVALID; |
| 350 | |
| 351 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 352 | return (CompareFunction)order->GetConditionComparator(); |
| 353 | } |
| 354 | |
| 355 | /* static */ SQInteger ScriptOrder::GetOrderCompareValue(VehicleID vehicle_id, OrderPosition order_position) |
| 356 | { |
nothing calls this directly
no test coverage detected