35 template <
class Tinst,
class Tcont>
class CargoList;
39 typedef uint32 TileOrStationID;
59 template <
class Tinst,
class Tcont>
friend class CargoList;
202 #define FOR_ALL_CARGOPACKETS_FROM(var, start) FOR_ALL_ITEMS_FROM(CargoPacket, cargopacket_index, var, start)
208 #define FOR_ALL_CARGOPACKETS(var) FOR_ALL_CARGOPACKETS_FROM(var, 0)
214 template <
class Tinst,
class Tcont>
234 NUM_MOVE_TO_ACTION = MTA_END
278 typedef std::list<CargoPacket *> CargoPacketList;
291 template<
class Taction>
294 template<
class Taction>
315 StationID current_station,
bool accepted,
StationIDStack next_station);
328 template<
class Tsource>
339 return this->
count == 0 ? INVALID_STATION : this->
packets.front()->source;
432 template<MoveToAction Tfrom, MoveToAction Tto>
458 typedef std::map<StationID, uint> StationCargoAmountMap;
478 template<
class Tsource>
486 template<
class Taction>
487 bool ShiftCargo(Taction &action, StationID next);
489 template<
class Taction>
505 return this->
packets.find(INVALID_STATION) != this->
packets.end();
514 return this->
count == 0 ? INVALID_STATION : this->
packets.begin()->second.front()->source;
552 uint
Truncate(uint
max_move = UINT_MAX, StationCargoAmountMap *cargo_per_source = NULL);