OpenTTD
|
Action of rerouting cargo staged for transfer in a vehicle. More...
#include <cargoaction.h>
Public Member Functions | |
VehicleCargoReroute (VehicleCargoList *source, VehicleCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge) | |
bool | operator() (CargoPacket *cp) |
Reroutes some cargo in a VehicleCargoList. More... | |
![]() | |
CargoReroute (VehicleCargoList *source, VehicleCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge) | |
![]() | |
CargoMovement (VehicleCargoList *source, VehicleCargoList *destination, uint max_move) | |
uint | MaxMove () |
Returns how much more cargo can be moved with this action. More... | |
Additional Inherited Members | |
![]() | |
CargoPacket * | Preprocess (CargoPacket *cp) |
Decides if a packet needs to be split. More... | |
![]() | |
StationID | avoid |
StationID | avoid2 |
const GoodsEntry * | ge |
![]() | |
VehicleCargoList * | source |
Source of the cargo. | |
VehicleCargoList * | destination |
Destination for the cargo. | |
uint | max_move |
Maximum amount of cargo to be moved with this action. | |
Action of rerouting cargo staged for transfer in a vehicle.
Definition at line 136 of file cargoaction.h.
bool VehicleCargoReroute::operator() | ( | CargoPacket * | cp | ) |
Reroutes some cargo in a VehicleCargoList.
cp | Packet to be rerouted. |
Definition at line 220 of file cargoaction.cpp.
References CargoPacket::Count(), CargoList< VehicleCargoList, CargoPacketList >::MTA_TRANSFER, CargoPacket::NextStation(), CargoRemoval< Tsource >::Postprocess(), CargoRemoval< Tsource >::Preprocess(), CargoPacket::SetNextStation(), CargoRemoval< Tsource >::source, and CargoPacket::SourceStation().