* Check if the current vehicle has a full load order. * @return true Iff this vehicle has a full load order. */
| 2440 | * @return true Iff this vehicle has a full load order. |
| 2441 | */ |
| 2442 | bool Vehicle::HasFullLoadOrder() const |
| 2443 | { |
| 2444 | return std::ranges::any_of(this->Orders(), [](const Order &o) { |
| 2445 | return o.IsType(OT_GOTO_STATION) && o.IsFullLoadOrder(); |
| 2446 | }); |
| 2447 | } |
| 2448 | |
| 2449 | /** |
| 2450 | * Check if the current vehicle has a conditional order. |
no test coverage detected