OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
19 template<
class Tsource>
53 template<
class Tsource,
class Tdest>
114 template<
class Tlist>
Action of rerouting cargo between different cargo lists and/or next hops.
uint32 TileIndex
The index/ID of a Tile.
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.
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 ...
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.
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.
TileIndex load_place
TileIndex to be saved in the packets' loaded_at_xy.
bool operator()(CargoPacket *cp)
Transfers some cargo from a vehicle to a station.
Container for cargo from the same location and time.
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.