OpenTTD
|
Action of reserving cargo from a station to be loaded onto a vehicle. More...
#include <cargoaction.h>
Public Member Functions | |
CargoReservation (StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) | |
bool | operator() (CargoPacket *cp) |
Reserves some cargo for loading. | |
![]() | |
CargoLoad (StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) | |
![]() | |
CargoMovement (StationCargoList *source, VehicleCargoList *destination, uint max_move) | |
uint | MaxMove () |
Returns how much more cargo can be moved with this action. |
Additional Inherited Members | |
![]() | |
CargoPacket * | Preprocess (CargoPacket *cp) |
![]() | |
TileIndex | load_place |
TileIndex to be saved in the packets' loaded_at_xy. |
Action of reserving cargo from a station to be loaded onto a vehicle.
Definition at line 91 of file cargoaction.h.
bool CargoReservation::operator() | ( | CargoPacket * | cp | ) |
Reserves some cargo for loading.
cp | Packet to be reserved. |
Reimplemented from CargoLoad.
Definition at line 136 of file cargoaction.cpp.
References VehicleCargoList::Append(), CargoPacket::Count(), CargoMovement< StationCargoList, VehicleCargoList >::destination, CargoLoad::load_place, CargoList< VehicleCargoList, CargoPacketList >::MTA_LOAD, CargoMovement< StationCargoList, VehicleCargoList >::Preprocess(), CargoList< Tinst, Tcont >::RemoveFromCache(), StationCargoList::reserved_count, CargoPacket::SetLoadPlace(), and CargoMovement< StationCargoList, VehicleCargoList >::source.