Abstract action for moving cargo from one list to another.
More...
#include <cargoaction.h>
|
Tsource * | source |
| Source of the cargo.
|
|
Tdest * | destination |
| Destination for the cargo.
|
|
uint | max_move |
| Maximum amount of cargo to be moved with this action.
|
|
template<class Tsource, class Tdest>
class CargoMovement< Tsource, Tdest >
Abstract action for moving cargo from one list to another.
- Template Parameters
-
Definition at line 55 of file cargoaction.h.
◆ MaxMove()
template<class Tsource , class Tdest >
Returns how much more cargo can be moved with this action.
- Returns
- Amount of cargo this action can still move.
Definition at line 68 of file cargoaction.h.
◆ Preprocess()
template<class Tsource , class Tdest >
Decides if a packet needs to be split.
- Parameters
-
cp | Packet to be either split or moved in one piece. |
- Returns
- Either new packet if splitting was necessary or the given one otherwise.
Definition at line 24 of file cargoaction.cpp.
The documentation for this class was generated from the following files: