(svn r25362) -Feature: consider cargo waiting at other stations for rating at the origin station

This commit is contained in:
fonsinchen
2013-06-09 13:04:32 +00:00
parent f022550df9
commit 1de46050f6
5 changed files with 74 additions and 19 deletions

View File

@@ -443,6 +443,7 @@ public:
};
typedef MultiMap<StationID, CargoPacket *> StationCargoPacketMap;
typedef std::map<StationID, uint> StationCargoAmountMap;
/**
* CargoList that is used for stations.
@@ -532,7 +533,7 @@ public:
uint Reserve(uint max_move, VehicleCargoList *dest, TileIndex load_place, StationID next);
uint Load(uint max_move, VehicleCargoList *dest, TileIndex load_place, StationID next);
uint Truncate(uint max_move = UINT_MAX);
uint Truncate(uint max_move = UINT_MAX, StationCargoAmountMap *cargo_per_source = NULL);
uint Reroute(uint max_move, StationCargoList *dest, StationID avoid, StationID avoid2, const GoodsEntry *ge);
/**