|
@@ -85,21 +85,21 @@ public:
|
|
|
CargoLoad(StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) :
|
|
|
CargoMovement<StationCargoList, VehicleCargoList>(source, destination, max_move), load_place(load_place) {}
|
|
|
bool operator()(CargoPacket *cp);
|
|
|
};
|
|
|
|
|
|
/** Action of reserving cargo from a station to be loaded onto a vehicle. */
|
|
|
class CargoReservation: public CargoLoad {
|
|
|
class CargoReservation : public CargoLoad {
|
|
|
public:
|
|
|
CargoReservation(StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) :
|
|
|
CargoLoad(source, destination, max_move, load_place) {}
|
|
|
bool operator()(CargoPacket *cp);
|
|
|
};
|
|
|
|
|
|
/** Action of returning previously reserved cargo from the vehicle to the station. */
|
|
|
class CargoReturn: public CargoMovement<VehicleCargoList, StationCargoList> {
|
|
|
class CargoReturn : public CargoMovement<VehicleCargoList, StationCargoList> {
|
|
|
StationID next;
|
|
|
public:
|
|
|
CargoReturn(VehicleCargoList *source, StationCargoList *destination, uint max_move, StationID next) :
|
|
|
CargoMovement<VehicleCargoList, StationCargoList>(source, destination, max_move), next(next) {}
|
|
|
bool operator()(CargoPacket *cp);
|
|
|
};
|