MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MakeGoToDepot

Method MakeGoToDepot

src/order_cmd.cpp:73–81  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

71 * @param cargo the cargo type to change to.
72 */
73void 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.

Callers 8

CheckIfShipNeedsServiceFunction · 0.80
GetOrderCmdFromTileFunction · 0.80
CheckIfTrainNeedsServiceFunction · 0.80
SendToDepotMethod · 0.80
InsertOrderMethod · 0.80

Calls 4

SetDepotOrderTypeMethod · 0.95
SetDepotActionTypeMethod · 0.95
SetNonStopTypeMethod · 0.95
SetRefitMethod · 0.95

Tested by

no test coverage detected