|
OpenTTD Source 20260208-master-g43af8e94d0
|
Command definitions related to depots. More...
Go to the source code of this file.
Functions | |
| CommandCost | CmdRenameDepot (DoCommandFlags flags, DepotID depot_id, const std::string &text) |
| Rename a depot. | |
| void | CcCloneVehicle (Commands, const CommandCost &result, VehicleID veh_id) |
| This is the Callback method after the cloning attempt of a vehicle. | |
Command definitions related to depots.
Definition in file depot_cmd.h.
| void CcCloneVehicle | ( | Commands | , |
| const CommandCost & | result, | ||
| VehicleID | veh_id ) |
This is the Callback method after the cloning attempt of a vehicle.
| result | the result of the cloning command |
| veh_id | cloned vehicle ID |
Definition at line 124 of file depot_gui.cpp.
References CommandCost::Failed(), and ShowVehicleViewWindow().
Referenced by VehicleViewWindow::OnClick(), and DepotWindow::OnVehicleSelect().
| CommandCost CmdRenameDepot | ( | DoCommandFlags | flags, |
| DepotID | depot_id, | ||
| const std::string & | text ) |
Rename a depot.
| flags | type of operation |
| depot_id | id of depot |
| text | the new name or an empty string when resetting to the default |
Definition at line 46 of file depot_cmd.cpp.
References CheckTileOwnership(), CMD_ERROR, Execute, CommandCost::Failed(), GetDepotVehicleType(), GetTileOwner(), GetWindowClassForVehicleType(), IsUniqueDepotName(), MakeDefaultName(), MAX_LENGTH_DEPOT_NAME_CHARS, SetWindowClassesDirty(), SetWindowDirty(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), VehicleListIdentifier::ToWindowNumber(), Utf8StringLength(), VL_DEPOT_LIST, WC_VEHICLE_DEPOT, and WC_VEHICLE_ORDERS.