|
OpenTTD Source
14.0-beta3
|
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.
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
uint32_t VehicleID
The type all our vehicle IDs have.
@ CMDT_VEHICLE_MANAGEMENT
Stopping, starting, sending to depot, turning around, replace orders etc.
uint16_t GroupID
Type for all group identifiers.
uint16_t EngineID
Unique identification number of an engine.