#include <airport.h>
Public Member Functions | |
bool | IsAvailable () const |
Static Public Member Functions | |
static const AirportSpec * | Get (byte type) |
Retrieve airport spec for the given airport. | |
Data Fields | |
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 Public Attributes | |
static AirportSpec | dummy = {NULL, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR} |
static AirportSpec | oilrig = {NULL, NULL, 0, 1, 1, 0, 4, MIN_YEAR, MIN_YEAR} |
Definition at line 54 of file airport.h.
const AirportSpec * AirportSpec::Get | ( | byte | type | ) | [static] |
Retrieve airport spec for the given airport.
type | index of airport |
Definition at line 32 of file airport.cpp.
Referenced by CmdBuildAirport(), AIAirport::GetAirportCoverageRadius(), AIAirport::GetNearestTown(), AIAirport::GetNoiseLevelIncrease(), AIAirport::GetPrice(), and AIAirport::IsValidAirportType().