diff options
author | rubidium <rubidium@openttd.org> | 2013-05-19 14:11:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-05-19 14:11:20 +0000 |
commit | 06313e49812b534d1c16ce5376f39081519b0aef (patch) | |
tree | 300a0680d2cf38c97a6a7c2f25f14bee4938beb3 /src/station_base.h | |
parent | b0a2818ed0a355eba561e35598847423cfdb5652 (diff) | |
download | openttd-06313e49812b534d1c16ce5376f39081519b0aef.tar.xz |
(svn r25257) -Add: basic link graph (fonsinchen)
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/station_base.h b/src/station_base.h index 322a7dc8e..7a3d3a885 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -16,6 +16,7 @@ #include "newgrf_airport.h" #include "cargopacket.h" #include "industry_type.h" +#include "linkgraph/linkgraph_type.h" #include "newgrf_storage.h" typedef Pool<BaseStation, StationID, 32, 64000> StationPool; @@ -74,7 +75,9 @@ struct GoodsEntry { time_since_pickup(255), rating(INITIAL_STATION_RATING), last_speed(0), - last_age(255) + last_age(255), + link_graph(INVALID_LINK_GRAPH), + node(INVALID_NODE) {} byte acceptance_pickup; ///< Status of this cargo, see #GoodsEntryStatus. @@ -108,6 +111,9 @@ struct GoodsEntry { byte amount_fract; ///< Fractional part of the amount in the cargo list StationCargoList cargo; ///< The cargo packets of cargo waiting in this station + LinkGraphID link_graph; ///< Link graph this station belongs to. + NodeID node; ///< ID of node in link graph referring to this goods entry. + /** * Reports whether a vehicle has ever tried to load the cargo at this station. * This does not imply that there was cargo available for loading. Refer to GES_PICKUP for that. |