| 2184 | } |
| 2185 | |
| 2186 | bool Order::CanLoadOrUnload() const |
| 2187 | { |
| 2188 | return (this->IsType(OT_GOTO_STATION) || this->IsType(OT_IMPLICIT)) && |
| 2189 | !this->GetNonStopType().Test(OrderNonStopFlag::NoDestination) && |
| 2190 | (this->GetLoadType() != OrderLoadType::NoLoad || |
| 2191 | this->GetUnloadType() != OrderUnloadType::NoUnload); |
| 2192 | } |
| 2193 | |
| 2194 | /** |
| 2195 | * A vehicle can leave the current station with cargo if: |
no test coverage detected