| OpenTTD
    | 
Action of loading cargo from a station onto a vehicle. More...
#include <cargoaction.h>
 
  
 | Public Member Functions | |
| CargoLoad (StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) | |
| bool | operator() (CargoPacket *cp) | 
| Loads some cargo onto a vehicle. | |
|  Public Member Functions inherited from CargoMovement< StationCargoList, VehicleCargoList > | |
| CargoMovement (StationCargoList *source, VehicleCargoList *destination, uint max_move) | |
| uint | MaxMove () | 
| Returns how much more cargo can be moved with this action. | |
| Protected Attributes | |
| TileIndex | load_place | 
| TileIndex to be saved in the packets' loaded_at_xy. | |
|  Protected Attributes inherited from CargoMovement< StationCargoList, VehicleCargoList > | |
| StationCargoList * | source | 
| Source of the cargo. | |
| VehicleCargoList * | destination | 
| Destination for the cargo. | |
| uint | max_move | 
| Maximum amount of cargo to be moved with this action. | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from CargoMovement< StationCargoList, VehicleCargoList > | |
| CargoPacket * | Preprocess (CargoPacket *cp) | 
Action of loading cargo from a station onto a vehicle.
Definition at line 81 of file cargoaction.h.
| bool CargoLoad::operator() | ( | CargoPacket * | cp | ) | 
Loads some cargo onto a vehicle.
| cp | Packet to be loaded. | 
Reimplemented in CargoReservation.
Definition at line 121 of file cargoaction.cpp.
References VehicleCargoList::Append(), CargoPacket::Count(), CargoMovement< StationCargoList, VehicleCargoList >::destination, load_place, CargoList< VehicleCargoList, CargoPacketList >::MTA_KEEP, CargoMovement< StationCargoList, VehicleCargoList >::Preprocess(), CargoList< Tinst, Tcont >::RemoveFromCache(), CargoPacket::SetLoadPlace(), and CargoMovement< StationCargoList, VehicleCargoList >::source.
 1.8.1.2
 1.8.1.2