equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef STATION_H |
3 #ifndef STATION_H |
4 #define STATION_H |
4 #define STATION_H |
5 |
5 |
|
6 #include "airport.h" |
6 #include "player.h" |
7 #include "player.h" |
7 #include "oldpool.h" |
8 #include "oldpool.h" |
8 #include "sprite.h" |
9 #include "sprite.h" |
9 #include "tile.h" |
10 #include "tile.h" |
10 #include "newgrf_station.h" |
11 #include "newgrf_station.h" |
108 struct Station { |
109 struct Station { |
109 public: |
110 public: |
110 RoadStop *GetPrimaryRoadStop(RoadStop::Type type) const |
111 RoadStop *GetPrimaryRoadStop(RoadStop::Type type) const |
111 { |
112 { |
112 return type == RoadStop::BUS ? bus_stops : truck_stops; |
113 return type == RoadStop::BUS ? bus_stops : truck_stops; |
|
114 } |
|
115 |
|
116 const AirportFTAClass *Airport() const |
|
117 { |
|
118 assert(airport_tile != 0); |
|
119 return GetAirport(airport_type); |
113 } |
120 } |
114 |
121 |
115 TileIndex xy; |
122 TileIndex xy; |
116 RoadStop *bus_stops; |
123 RoadStop *bus_stops; |
117 RoadStop *truck_stops; |
124 RoadStop *truck_stops; |