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. |
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 218 of file cargoaction.cpp.
References VehicleCargoList::action_counts, VehicleCargoList::AddToMeta(), CargoPacket::Count(), CargoMovement< VehicleCargoList, VehicleCargoList >::destination, GoodsEntry::GetVia(), CargoList< VehicleCargoList, CargoPacketList >::MTA_TRANSFER, CargoPacket::NextStation(), CargoList< Tinst, Tcont >::packets, CargoMovement< VehicleCargoList, VehicleCargoList >::Preprocess(), VehicleCargoList::RemoveFromMeta(), CargoPacket::SetNextStation(), CargoMovement< VehicleCargoList, VehicleCargoList >::source, and CargoPacket::SourceStation().