OpenTTD
|
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. More... | |
![]() | |
CargoMovement (VehicleCargoList *source, StationCargoList *destination, uint max_move) | |
uint | MaxMove () |
Returns how much more cargo can be moved with this action. More... | |
Private Attributes | |
StationID | next |
Additional Inherited Members | |
![]() | |
CargoPacket * | Preprocess (CargoPacket *cp) |
Decides if a packet needs to be split. More... | |
![]() | |
VehicleCargoList * | source |
Source of the cargo. | |
StationCargoList * | destination |
Destination for the cargo. | |
uint | max_move |
Maximum amount of cargo to be moved with this action. | |
Action of returning previously reserved cargo from the vehicle to the station.
Definition at line 99 of file cargoaction.h.
bool CargoReturn::operator() | ( | CargoPacket * | cp | ) |
Returns some reserved cargo.
cp | Packet to be returned. |
Definition at line 152 of file cargoaction.cpp.
References CargoRemoval< Tsource >::Preprocess().