OpenTTD
Public Member Functions
StationCargoReroute Class Reference

Action of rerouting cargo in a station. More...

#include <cargoaction.h>

Inheritance diagram for StationCargoReroute:
CargoReroute< StationCargoList > CargoMovement< StationCargoList, StationCargoList >

Public Member Functions

 StationCargoReroute (StationCargoList *source, StationCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge)
bool operator() (CargoPacket *cp)
 Reroutes some cargo from one Station sublist to another.
- Public Member Functions inherited from CargoReroute< StationCargoList >
 CargoReroute (StationCargoList *source, StationCargoList *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge)
- Public Member Functions inherited from CargoMovement< StationCargoList, StationCargoList >
 CargoMovement (StationCargoList *source, StationCargoList *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< StationCargoList, StationCargoList >
CargoPacketPreprocess (CargoPacket *cp)
- Protected Attributes inherited from CargoReroute< StationCargoList >
StationID avoid
StationID avoid2
const GoodsEntryge

Detailed Description

Action of rerouting cargo in a station.

Definition at line 128 of file cargoaction.h.

Member Function Documentation

bool StationCargoReroute::operator() ( CargoPacket cp)

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