Action of returning previously reserved cargo from the vehicle to the station. More...
#include <cargoaction.h>
Public Member Functions | |
CargoReturn (VehicleCargoList *source, StationCargoList *destination, uint max_move, StationID next) | |
bool | operator() (CargoPacket *cp) |
Returns some reserved cargo. | |
Private Attributes | |
StationID | next |
Action of returning previously reserved cargo from the vehicle to the station.
Definition at line 101 of file cargoaction.h.
bool CargoReturn::operator() | ( | CargoPacket * | cp | ) |
Returns some reserved cargo.
cp | Packet to be returned. |
Definition at line 150 of file cargoaction.cpp.
References StationCargoList::Append(), CargoPacket::Count(), CargoMovement< VehicleCargoList, StationCargoList >::destination, CargoList< VehicleCargoList, CargoPacketList >::MTA_LOAD, CargoMovement< VehicleCargoList, StationCargoList >::Preprocess(), VehicleCargoList::RemoveFromMeta(), StationCargoList::reserved_count, and CargoMovement< VehicleCargoList, StationCargoList >::source.