OpenTTD
|
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. | |
![]() | |
CargoRemoval (VehicleCargoList *source, uint max_move) | |
uint | MaxMove () |
Returns how much more cargo can be removed with this action. |
Protected Attributes | |
CargoPayment * | payment |
Payment object where payments will be registered. | |
![]() | |
VehicleCargoList * | source |
Source of the cargo. | |
uint | max_move |
Maximum amount of cargo to be removed with this action. |
Additional Inherited Members | |
![]() | |
uint | Preprocess (CargoPacket *cp) |
bool | Postprocess (CargoPacket *cp, uint remove) |
Action of final delivery of cargo.
Definition at line 41 of file cargoaction.h.
bool CargoDelivery::operator() | ( | CargoPacket * | cp | ) |
Delivers some cargo.
cp | Packet to be delivered. |
Reimplemented from CargoRemoval< VehicleCargoList >.
Definition at line 108 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.