OpenTTD
Public Member Functions
VehicleCargoReroute Class Reference

Action of rerouting cargo staged for transfer in a vehicle. More...

#include <cargoaction.h>

Inheritance diagram for VehicleCargoReroute:
CargoReroute< VehicleCargoList > CargoMovement< VehicleCargoList, VehicleCargoList >

Public Member Functions

 VehicleCargoReroute (VehicleCargoList *source, VehicleCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge)
bool operator() (CargoPacket *cp)
 Reroutes some cargo in a VehicleCargoList.
- Public Member Functions inherited from CargoReroute< VehicleCargoList >
 CargoReroute (VehicleCargoList *source, VehicleCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge)
- Public Member Functions inherited from CargoMovement< VehicleCargoList, VehicleCargoList >
 CargoMovement (VehicleCargoList *source, VehicleCargoList *destination, uint max_move)
uint MaxMove ()
 Returns how much more cargo can be moved with this action.

Additional Inherited Members

- Protected Member Functions inherited from CargoMovement< VehicleCargoList, VehicleCargoList >
CargoPacketPreprocess (CargoPacket *cp)
- Protected Attributes inherited from CargoReroute< VehicleCargoList >
StationID avoid
StationID avoid2
const GoodsEntryge

Detailed Description

Action of rerouting cargo staged for transfer in a vehicle.

Definition at line 136 of file cargoaction.h.

Member Function Documentation

bool VehicleCargoReroute::operator() ( CargoPacket cp)

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