* Makes this order a Go To Depot order. * @param destination the depot to go to. * @param order is this order a 'default' order, or an overridden vehicle order? * @param non_stop_type how to get to the depot? * @param action what to do in the depot? * @param cargo the cargo type to change to. */
| 71 | * @param cargo the cargo type to change to. |
| 72 | */ |
| 73 | void Order::MakeGoToDepot(DestinationID destination, OrderDepotTypeFlags order, OrderNonStopFlags non_stop_type, OrderDepotActionFlags action, CargoType cargo) |
| 74 | { |
| 75 | this->type = OT_GOTO_DEPOT; |
| 76 | this->SetDepotOrderType(order); |
| 77 | this->SetDepotActionType(action); |
| 78 | this->SetNonStopType(non_stop_type); |
| 79 | this->dest = destination; |
| 80 | this->SetRefit(cargo); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Makes this order a Go To Waypoint order. |
no test coverage detected