summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-30 11:13:12 +0100
committerErich Eckner <git@eckner.net>2018-10-30 15:28:03 +0100
commita34d095259409cf1454d9777deabbc00bcdb9407 (patch)
tree9e7c37ed33f5bd6b3c2f41cf248dcb656b2a4afa /src/station_base.h
parent6647cb917963c4e0d6d633b7a92af78167050893 (diff)
downloadopenttd-underground-plus-others-original.tar.xz
underground patch appliedunderground-plus-others-original
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h9
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.