OpenTTD
Public Member Functions | Private Attributes
CargoReturn Class Reference

Action of returning previously reserved cargo from the vehicle to the station. More...

#include <cargoaction.h>

Inheritance diagram for CargoReturn:
CargoMovement< VehicleCargoList, StationCargoList >

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 >
CargoPacketPreprocess (CargoPacket *cp)
- Protected Attributes inherited from CargoMovement< VehicleCargoList, StationCargoList >
VehicleCargoListsource
 Source of the cargo.
StationCargoListdestination
 Destination for the cargo.
uint max_move
 Maximum amount of cargo to be moved with this action.

Detailed Description

Action of returning previously reserved cargo from the vehicle to the station.

Definition at line 99 of file cargoaction.h.

Member Function Documentation

bool CargoReturn::operator() ( CargoPacket cp)

The documentation for this class was generated from the following files: