equal
deleted
inserted
replaced
8 #include "oldpool.h" |
8 #include "oldpool.h" |
9 #include "economy_type.h" |
9 #include "economy_type.h" |
10 #include "tile_type.h" |
10 #include "tile_type.h" |
11 #include "station_type.h" |
11 #include "station_type.h" |
12 #include <list> |
12 #include <list> |
13 |
|
14 struct BackuppedVehicle; |
|
15 |
13 |
16 typedef uint32 CargoPacketID; |
14 typedef uint32 CargoPacketID; |
17 struct CargoPacket; |
15 struct CargoPacket; |
18 |
16 |
19 /** We want to use a pool */ |
17 /** We want to use a pool */ |
101 Money feeder_share; ///< Cache for the feeder share |
99 Money feeder_share; ///< Cache for the feeder share |
102 StationID source; ///< Cache for the source of the packet |
100 StationID source; ///< Cache for the source of the packet |
103 uint days_in_transit; ///< Cache for the number of days in transit |
101 uint days_in_transit; ///< Cache for the number of days in transit |
104 |
102 |
105 public: |
103 public: |
106 friend struct BackuppedVehicle; |
|
107 friend void SaveLoad_STNS(Station *st); |
104 friend void SaveLoad_STNS(Station *st); |
108 |
105 |
109 /** Create the cargo list */ |
106 /** Create the cargo list */ |
110 CargoList() { this->InvalidateCache(); } |
107 CargoList() { this->InvalidateCache(); } |
111 /** And destroy it ("frees" all cargo packets) */ |
108 /** And destroy it ("frees" all cargo packets) */ |