Action of shifting cargo from one vehicle to another. More...
#include <cargoaction.h>
Public Member Functions | |
CargoShift (VehicleCargoList *source, VehicleCargoList *destination, uint max_move) | |
bool | operator() (CargoPacket *cp) |
Shifts some cargo from a vehicle to another one. |
Action of shifting cargo from one vehicle to another.
Definition at line 110 of file cargoaction.h.
bool CargoShift::operator() | ( | CargoPacket * | cp | ) |
Shifts some cargo from a vehicle to another one.
cp | Packet to be shifted. |
Definition at line 180 of file cargoaction.cpp.
References VehicleCargoList::Append(), CargoPacket::Count(), CargoMovement< VehicleCargoList, VehicleCargoList >::destination, CargoList< VehicleCargoList, CargoPacketList >::MTA_KEEP, CargoMovement< VehicleCargoList, VehicleCargoList >::Preprocess(), VehicleCargoList::RemoveFromMeta(), and CargoMovement< VehicleCargoList, VehicleCargoList >::source.