summaryrefslogtreecommitdiff
path: root/src/airport.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 16:09:26 +0000
committeryexo <yexo@openttd.org>2010-02-22 16:09:26 +0000
commitdd7c2b2f9db8b2ca2339d43fcf7b0f6da46e8c96 (patch)
tree941044d28637aa6339bec4d3f35d1a5743e318ea /src/airport.h
parent5ebc0a16c828e8504858239154a6a70855837556 (diff)
downloadopenttd-dd7c2b2f9db8b2ca2339d43fcf7b0f6da46e8c96.tar.xz
(svn r19205) -Codechange: move AirportSpec to newgrf_airport.h/cpp
Diffstat (limited to 'src/airport.h')
-rw-r--r--src/airport.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/airport.h b/src/airport.h
index ffd453d0d..8f640704a 100644
--- a/src/airport.h
+++ b/src/airport.h
@@ -13,8 +13,6 @@
#define AIRPORT_H
#include "direction_type.h"
-#include "map_type.h"
-#include "date_type.h"
/** Some airport-related constants */
enum {
@@ -42,36 +40,6 @@ enum {
AT_DUMMY = 255
};
-/* Copy from station_map.h */
-typedef byte StationGfx;
-
-struct AirportTileTable {
- TileIndexDiffC ti;
- StationGfx gfx;
-};
-
-/**
- * Defines the data structure for an airport.
- */
-struct AirportSpec {
- const AirportTileTable * const *table; ///< list of the tiles composing the airport
- const TileIndexDiffC *depot_table; ///< gives the position of the depots on the airports
- byte nof_depots; ///< the number of depots in this airport
- byte size_x; ///< size of airport in x direction
- byte size_y; ///< size of airport in y direction
- byte noise_level; ///< noise that this airport generates
- byte catchment; ///< catchment area of this airport
- Year min_year; ///< first year the airport is available
- Year max_year; ///< last year the airport is available
-
- static const AirportSpec *Get(byte type);
-
- bool IsAvailable() const;
-
- static AirportSpec dummy;
- static AirportSpec oilrig;
-};
-
enum {
AMED_NOSPDCLAMP = 1 << 0,
AMED_TAKEOFF = 1 << 1,