Action of final delivery of cargo. More...
#include <cargoaction.h>
Public Member Functions | |
CargoDelivery (VehicleCargoList *source, uint max_move, CargoPayment *payment) | |
bool | operator() (CargoPacket *cp) |
Delivers some cargo. | |
Protected Attributes | |
CargoPayment * | payment |
Payment object where payments will be registered. |
Action of final delivery of cargo.
Definition at line 42 of file cargoaction.h.
bool CargoDelivery::operator() | ( | CargoPacket * | cp | ) |
Delivers some cargo.
cp | Packet to be delivered. |
Reimplemented from CargoRemoval< VehicleCargoList >.
Definition at line 106 of file cargoaction.cpp.
References CargoList< VehicleCargoList, CargoPacketList >::MTA_DELIVER, CargoPayment::PayFinalDelivery(), payment, CargoRemoval< VehicleCargoList >::Postprocess(), CargoRemoval< VehicleCargoList >::Preprocess(), VehicleCargoList::RemoveFromMeta(), and CargoRemoval< VehicleCargoList >::source.