OpenTTD Source 20241224-master-gee860a5c8e
|
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. | |
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.
Cost of buying and refitting replacement.
Definition at line 501 of file autoreplace_cmd.cpp.
|
inline |
Get vehicle to use for this position.
Definition at line 507 of file autoreplace_cmd.cpp.
Money ReplaceChainItem::cost |
Definition at line 499 of file autoreplace_cmd.cpp.
Vehicle* ReplaceChainItem::new_veh |
Replacement vehicle, or nullptr if no replacement.
Definition at line 498 of file autoreplace_cmd.cpp.
Referenced by GetVehicle(), and ReplaceChain().
Vehicle* ReplaceChainItem::old_veh |
Old vehicle to replace.
Definition at line 497 of file autoreplace_cmd.cpp.
Referenced by GetVehicle(), and ReplaceChain().