static */
| 128 | } |
| 129 | |
| 130 | /* static */ bool ScriptOrder::IsGotoWaypointOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 131 | { |
| 132 | if (!IsValidVehicleOrder(vehicle_id, order_position)) return false; |
| 133 | |
| 134 | const Order *order = ::ResolveOrder(vehicle_id, order_position); |
| 135 | return order != nullptr && order->GetType() == OT_GOTO_WAYPOINT; |
| 136 | } |
| 137 | |
| 138 | /* static */ bool ScriptOrder::IsConditionalOrder(VehicleID vehicle_id, OrderPosition order_position) |
| 139 | { |
nothing calls this directly
no test coverage detected