Go to the documentation of this file.
10 #ifndef AUTOREPLACE_CMD_H
11 #define AUTOREPLACE_CMD_H
CommandCost CmdAutoreplaceVehicle(DoCommandFlag flags, VehicleID veh_id)
Autoreplaces a vehicle Trains are replaced as a whole chain, free wagons in depot are replaced on the...
@ CMD_AUTOREPLACE_VEHICLE
replace/renew a vehicle while it is in a depot
DoCommandFlag
List of flags for a command.
uint16 EngineID
Unique identification number of an engine.
Common return value for all commands.
CommandCost CmdSetAutoReplace(DoCommandFlag flags, GroupID id_g, EngineID old_engine_type, EngineID new_engine_type, bool when_old)
Change engine renewal parameters.
@ CMD_SET_AUTOREPLACE
set an autoreplace entry
@ CMDT_VEHICLE_MANAGEMENT
Stopping, starting, sending to depot, turning around, replace orders etc.
uint16 GroupID
Type for all group identifiers.
uint32 VehicleID
The type all our vehicle IDs have.