OpenTTD Source
20241121-master-g67a0fccfad
|
Struct for recording vehicle chain replacement information. More...
Public Member Functions | |
ReplaceChainItem (Vehicle *old_veh, Vehicle *new_veh, Money cost) | |
Cost of buying and refitting replacement. | |
Vehicle * | GetVehicle () const |
Get vehicle to use for this position. More... | |
Data Fields | |
Vehicle * | old_veh |
Old vehicle to replace. | |
Vehicle * | new_veh |
Replacement vehicle, or nullptr if no replacement. | |
Money | cost |
Struct for recording vehicle chain replacement information.
Definition at line 496 of file autoreplace_cmd.cpp.
|
inline |
Get vehicle to use for this position.
Definition at line 507 of file autoreplace_cmd.cpp.