OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
19 template<
class Tsource>
54 template<
class Tsource,
class Tdest>
119 template<
class Tlist>
Action of rerouting cargo between different cargo lists and/or next hops.
Action of reserving cargo from a station to be loaded onto a vehicle.
bool operator()(CargoPacket *cp)
Shifts some cargo from a vehicle to another one.
bool operator()(CargoPacket *cp)
Reserves some cargo for loading.
TileIndex current_tile
Current tile cargo delivery is happening.
bool operator()(CargoPacket *cp)
Delivers some cargo.
Tdest * destination
Destination for the cargo.
CargoPacket * Preprocess(CargoPacket *cp)
Decides if a packet needs to be split.
CargoList that is used for stations.
Action of returning previously reserved cargo from the vehicle to the station.
uint Preprocess(CargoPacket *cp)
Determines the amount of cargo to be removed from a packet and removes that from the metadata of the ...
TileIndex current_tile
Current tile cargo loading is happening.
CargoList that is used for vehicles.
bool operator()(CargoPacket *cp)
Reroutes some cargo in a VehicleCargoList.
Action of rerouting cargo staged for transfer in a vehicle.
uint max_move
Maximum amount of cargo to be moved with this action.
Helper class to perform the cargo payment.
Action of final delivery of cargo.
uint MaxMove()
Returns how much more cargo can be removed with this action.
bool operator()(CargoPacket *cp)
Loads some cargo onto a vehicle.
@ MTA_TRANSFER
Transfer the cargo to the station.
uint MaxMove()
Returns how much more cargo can be moved with this action.
Action of shifting cargo from one vehicle to another.
Abstract action for moving cargo from one list to another.
Stores station stats for a single cargo.
Action of transferring cargo from a vehicle to a station.
TileIndex current_tile
Current tile cargo unloading is happening.
Abstract action of removing cargo from a vehicle or a station.
uint max_move
Maximum amount of cargo to be removed with this action.
Tsource * source
Source of the cargo.
bool operator()(CargoPacket *cp)
Returns some reserved cargo.
bool operator()(CargoPacket *cp)
Transfers some cargo from a vehicle to a station.
Container for cargo from the same location and time.
TileIndex current_tile
Current tile cargo unloading is happening.
bool Postprocess(CargoPacket *cp, uint remove)
Finalize cargo removal.
Tsource * source
Source of the cargo.
CargoPayment * payment
Payment object where payments will be registered.
Action of rerouting cargo in a station.
bool operator()(CargoPacket *cp)
Reroutes some cargo from one Station sublist to another.
Action of loading cargo from a station onto a vehicle.