|
OpenTTD Source 20260414-master-g8a7bc482ad
|
Action of rerouting cargo between different cargo lists and/or next hops. More...
#include <cargoaction.h>
Public Member Functions | |
| CargoReroute (Tlist *source, Tlist *dest, uint max_move, StationID avoid, StationID avoid2, const GoodsEntry *ge) | |
| Create the movement. | |
| Public Member Functions inherited from CargoMovement< Tlist, Tlist > | |
| CargoMovement (Tlist *source, Tlist *destination, uint max_move) | |
| Create the movement. | |
| uint | MaxMove () |
| Returns how much more cargo can be moved with this action. | |
Protected Attributes | |
| StationID | avoid |
| First station to avoid during rerouting. | |
| StationID | avoid2 |
| Second station to avoid during rerouting, could be StationID::Invalid(). | |
| const GoodsEntry * | ge |
| Goods that are to be rerouted. | |
| Protected Attributes inherited from CargoMovement< Tlist, Tlist > | |
| Tlist * | source |
| Source of the cargo. | |
| Tlist * | 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< Tlist, Tlist > | |
| CargoPacket * | Preprocess (CargoPacket *cp) |
| Decides if a packet needs to be split. | |
Action of rerouting cargo between different cargo lists and/or next hops.
Definition at line 140 of file cargoaction.h.
|
inline |
Create the movement.
| source | The source of the cargo. |
| dest | The destination of the cargo. |
| max_move | The maximum amount of cargo to be moved. |
| avoid | First station to avoid. |
| avoid2 | Optional second station to avoid (use StationID::Invalid()). |
| ge | The goods to reroute. |
Definition at line 155 of file cargoaction.h.
References avoid, avoid2, CargoMovement< Tlist, Tlist >::CargoMovement(), ge, CargoMovement< Tlist, Tlist >::max_move, and CargoMovement< Tlist, Tlist >::source.
|
protected |
First station to avoid during rerouting.
Definition at line 142 of file cargoaction.h.
Referenced by CargoReroute().
|
protected |
Second station to avoid during rerouting, could be StationID::Invalid().
Definition at line 143 of file cargoaction.h.
Referenced by CargoReroute().
|
protected |
Goods that are to be rerouted.
Definition at line 144 of file cargoaction.h.
Referenced by CargoReroute().