|
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. | |
Public Member Functions inherited from CargoMovement< VehicleCargoList, StationCargoList > | |
| CargoMovement (VehicleCargoList *source, StationCargoList *destination, uint max_move) | |
| uint | MaxMove () |
| Returns how much more cargo can be moved with this action. | |
Private Attributes | |
| StationID | next |
Additional Inherited Members | |
Protected Member Functions inherited from CargoMovement< VehicleCargoList, StationCargoList > | |
| CargoPacket * | Preprocess (CargoPacket *cp) |
Protected Attributes inherited from CargoMovement< VehicleCargoList, StationCargoList > | |
| 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 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.
1.8.1.2