21 template<
class Tsource>
29 CargoRemoval(Tsource *source, uint max_move) : source(source), max_move(max_move) {}
55 template<
class Tsource,
class Tdest>
63 CargoMovement(Tsource *source, Tdest *destination, uint max_move) : source(source), destination(destination), max_move(max_move) {}
94 CargoLoad(source, destination, max_move, load_place) {}
116 template<
class Tlist>
Action of rerouting cargo in a station.
Action of rerouting cargo between different cargo lists and/or next hops.
CargoList that is used for stations.
Action of shifting cargo from one vehicle to another.
Stores station stats for a single cargo.
Action of rerouting cargo staged for transfer in a vehicle.
uint max_move
Maximum amount of cargo to be removed with this action.
bool Postprocess(CargoPacket *cp, uint remove)
Finalize cargo removal.
Tsource * source
Source of the cargo.
Base class for cargo packets.
Transfer the cargo to the station.
Container for cargo from the same location and time.
uint MaxMove()
Returns how much more cargo can be moved with this action.
TileIndex load_place
TileIndex to be saved in the packets' loaded_at_xy.
Abstract action for moving cargo from one list to another.
CargoPayment * payment
Payment object where payments will be registered.
Helper class to perform the cargo payment.
Action of transferring cargo from a vehicle to a station.
Action of reserving cargo from a station to be loaded onto a vehicle.
CargoList that is used for vehicles.
uint MaxMove()
Returns how much more cargo can be removed with this action.
uint max_move
Maximum amount of cargo to be moved with this action.
uint32 TileIndex
The index/ID of a Tile.
Action of returning previously reserved cargo from the vehicle to the station.
Tsource * source
Source of the cargo.
Abstract action of removing cargo from a vehicle or a station.
uint Preprocess(CargoPacket *cp)
Determines the amount of cargo to be removed from a packet and removes that from the metadata of the ...
Action of final delivery of cargo.
Action of loading cargo from a station onto a vehicle.
Tdest * destination
Destination for the cargo.