diff options
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/station_base.h b/src/station_base.h index 07d1d2294..d0f6e5b51 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -17,12 +17,16 @@ #include "cargopacket.h" #include "industry_type.h" #include "newgrf_storage.h" +#include "cargodest_type.h" typedef Pool<BaseStation, StationID, 32, 64000> StationPool; extern StationPool _station_pool; static const byte INITIAL_STATION_RATING = 175; +/** List of RouteLinks. */ +typedef std::list<RouteLink *> RouteLinkList; + /** * Stores station stats for a single cargo. */ @@ -74,7 +78,8 @@ struct GoodsEntry { time_since_pickup(255), rating(INITIAL_STATION_RATING), last_speed(0), - last_age(255) + last_age(255), + cargo_counter(0) {} byte acceptance_pickup; ///< Status of this cargo, see #GoodsEntryStatus. @@ -106,7 +111,9 @@ struct GoodsEntry { byte last_age; byte amount_fract; ///< Fractional part of the amount in the cargo list + uint16 cargo_counter; ///< Update timer for the packets' next hop StationCargoList cargo; ///< The cargo packets of cargo waiting in this station + RouteLinkList routes; ///< List of originating route links /** * Reports whether a vehicle has ever tried to load the cargo at this station. |