# airport_defaults.h File Reference

Tables with default values for airports and airport tiles. More...

Go to the source code of this file.

## Defines

#define | MK(x, y, m) {{x, y}, m}
| Definition of an airport tiles layout.
#define | MKEND {{-0x80, 0}, 0}
| Terminator of airport tiles layout definition.
#define | AS_GENERIC(att, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year) {att, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year}
| General AirportSpec definition.
#define | AS_ND(ap_name, size_x, size_y, min_year, max_year, catchment, noise) AS_GENERIC(_tile_table_##ap_name, NULL, 0, size_x, size_y, noise, catchment, min_year, max_year)
| AirportSpec definition for airports without any depot.
#define | AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise) AS_GENERIC(_tile_table_##ap_name, _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), size_x, size_y, noise, catchment, min_year, max_year)
| AirportSpec definition for airports with at least one depot.

## Functions

| assert_compile (NUM_AIRPORTS==lengthof(_origin_airport_specs))

## Variables

static AirportTileTable | _tile_table_country_0 []
| Tiles for Country Airfield (small).
static AirportTileTable * | _tile_table_country []
static AirportTileTable | _tile_table_commuter_0 []
| Tiles for Commuter Airfield (small).
static AirportTileTable * | _tile_table_commuter []
static AirportTileTable | _tile_table_city_0 []
| Tiles for City Airport (large).
static AirportTileTable * | _tile_table_city []
static AirportTileTable | _tile_table_metropolitan_0 []
| Tiles for Metropolitain Airport (large) - 2 runways.
static AirportTileTable * | _tile_table_metropolitan []
static AirportTileTable | _tile_table_international_0 []
| Tiles for International Airport (large) - 2 runways.
static AirportTileTable * | _tile_table_international []
static AirportTileTable | _tile_table_intercontinental_0 []
| Tiles for International Airport (large) - 2 runways.
static AirportTileTable * | _tile_table_intercontinental []
static AirportTileTable | _tile_table_heliport_0 []
| Tiles for Heliport.
static AirportTileTable * | _tile_table_heliport []
static AirportTileTable | _tile_table_helidepot_0 []
| Tiles for Helidepot.
static AirportTileTable * | _tile_table_helidepot []
static AirportTileTable | _tile_table_helistation_0 []
| Tiles for Helistation.
static AirportTileTable * | _tile_table_helistation []
static const AirportSpec | _origin_airport_specs []

## Detailed Description

Tables with default values for airports and airport tiles.

Definition in file airport_defaults.h.

## Define Documentation

#define AS | ( | ap_name,
|  | size_x,
|  | size_y,
|  | min_year,
|  | max_year,
|  | catchment,
|  | noise |  | ) | AS_GENERIC(_tile_table_##ap_name, _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), size_x, size_y, noise, catchment, min_year, max_year)

AirportSpec definition for airports with at least one depot.

Definition at line 388 of file airport_defaults.h.

#define AS_GENERIC | ( | att,
|  | depot_tbl,
|  | num_depots,
|  | size_x,
|  | size_y,
|  | noise,
|  | catchment,
|  | min_year,
|  | max_year |  | ) | {att, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year}

General AirportSpec definition.

Definition at line 380 of file airport_defaults.h.

#define AS_ND | ( | ap_name,
|  | size_x,
|  | size_y,
|  | min_year,
|  | max_year,
|  | catchment,
|  | noise |  | ) | AS_GENERIC(_tile_table_##ap_name, NULL, 0, size_x, size_y, noise, catchment, min_year, max_year)

AirportSpec definition for airports without any depot.

Definition at line 384 of file airport_defaults.h.

#define MK | ( | x,
|  | y,
|  | m |  | ) | {{x, y}, m}

Definition of an airport tiles layout.

Parameters:

  | x | offset x of this tile
  | y | offset y of this tile
  | m | AirportGfx of the tile

See also:
  _airport_specs
  AirportTileTable

Definition at line 23 of file airport_defaults.h.

## Variable Documentation

const AirportSpec _origin_airport_specs[]`[static]`

Initial value:

     {
      AS(country, 4, 3, 0, 1959, 4, 3),
      AS(city, 6, 6, 1955, MAX_YEAR, 5, 5),
      AS_ND(heliport, 1, 1, 1963, MAX_YEAR, 4, 1),
      AS(metropolitan, 6, 6, 1980, MAX_YEAR, 6, 8),
      AS(international, 7, 7, 1990, MAX_YEAR, 8, 17),
      AS(commuter, 5, 4, 1983, MAX_YEAR, 4, 4),
      AS(helidepot, 2, 2, 1976, MAX_YEAR, 4, 2),
      AS(intercontinental, 9, 11, 2002, MAX_YEAR, 10, 25),
      AS(helistation, 4, 2, 1980, MAX_YEAR, 4, 3),
    }

Definition at line 391 of file airport_defaults.h.

AirportTileTable* _tile_table_city[]`[static]`

Initial value:

     {
      _tile_table_city_0,
    }

Definition at line 121 of file airport_defaults.h.

AirportTileTable* _tile_table_commuter[]`[static]`

Initial value:

     {
      _tile_table_commuter_0,
    }

Definition at line 76 of file airport_defaults.h.

AirportTileTable _tile_table_commuter_0[]`[static]`

Initial value:

     {
      MK(0, 0, APT_TOWER),
      MK(1, 0, APT_BUILDING_3),
      MK(2, 0, APT_HELIPAD_2_FENCE_NW),
      MK(3, 0, APT_HELIPAD_2_FENCE_NW),
      MK(4, 0, APT_DEPOT_SE),
      MK(0, 1, APT_APRON_FENCE_NE),
      MK(1, 1, APT_APRON),
      MK(2, 1, APT_APRON),
      MK(3, 1, APT_APRON),
      MK(4, 1, APT_APRON_FENCE_SW),
      MK(0, 2, APT_APRON_FENCE_NE),
      MK(1, 2, APT_STAND),
      MK(2, 2, APT_STAND),
      MK(3, 2, APT_STAND),
      MK(4, 2, APT_APRON_FENCE_SW),
      MK(0, 3, APT_RUNWAY_END_FENCE_SE),
      MK(1, 3, APT_RUNWAY_2),
      MK(2, 3, APT_RUNWAY_2),
      MK(3, 3, APT_RUNWAY_2),
      MK(4, 3, APT_RUNWAY_END_FENCE_SE),
      MKEND
    }

Tiles for Commuter Airfield (small).

Definition at line 52 of file airport_defaults.h.

AirportTileTable* _tile_table_country[]`[static]`

Initial value:

     {
      _tile_table_country_0,
    }

Definition at line 47 of file airport_defaults.h.

AirportTileTable _tile_table_country_0[]`[static]`

Initial value:

     {
      MK(0, 0, APT_SMALL_BUILDING_1),
      MK(1, 0, APT_SMALL_BUILDING_2),
      MK(2, 0, APT_SMALL_BUILDING_3),
      MK(3, 0, APT_SMALL_DEPOT_SE),
      MK(0, 1, APT_GRASS_FENCE_NE_FLAG),
      MK(1, 1, APT_GRASS_1),
      MK(2, 1, APT_GRASS_2),
      MK(3, 1, APT_GRASS_FENCE_SW),
      MK(0, 2, APT_RUNWAY_SMALL_FAR_END),
      MK(1, 2, APT_RUNWAY_SMALL_MIDDLE),
      MK(2, 2, APT_RUNWAY_SMALL_MIDDLE),
      MK(3, 2, APT_RUNWAY_SMALL_NEAR_END),
      MKEND
    }

Tiles for Country Airfield (small).

Definition at line 31 of file airport_defaults.h.

AirportTileTable* _tile_table_helidepot[]`[static]`

Initial value:

     {
      _tile_table_helidepot_0,
    }

Definition at line 355 of file airport_defaults.h.

AirportTileTable _tile_table_helidepot_0[]`[static]`

Initial value:

     {
      MK(0, 0, APT_LOW_BUILDING_FENCE_N),
      MK(1, 0, APT_DEPOT_SE),
      MK(0, 1, APT_HELIPAD_2_FENCE_NE_SE),
      MK(1, 1, APT_APRON_FENCE_SE_SW),
      MKEND
    }

Tiles for Helidepot.

Definition at line 347 of file airport_defaults.h.

AirportTileTable* _tile_table_heliport[]`[static]`

Initial value:

     {
      _tile_table_heliport_0,
    }

Definition at line 342 of file airport_defaults.h.

AirportTileTable _tile_table_heliport_0[]`[static]`

Initial value:

     {
      MK(0, 0, APT_HELIPORT),
      MKEND
    }

Tiles for Heliport.

Definition at line 337 of file airport_defaults.h.

AirportTileTable* _tile_table_helistation[]`[static]`

Initial value:

     {
      _tile_table_helistation_0,
    }

Definition at line 372 of file airport_defaults.h.

AirportTileTable _tile_table_helistation_0[]`[static]`

Initial value:

     {
      MK(0, 0, APT_DEPOT_SE),
      MK(1, 0, APT_LOW_BUILDING_FENCE_NW),
      MK(2, 0, APT_HELIPAD_3_FENCE_NW),
      MK(3, 0, APT_HELIPAD_3_FENCE_NW_SW),
      MK(0, 1, APT_APRON_FENCE_NE_SE),
      MK(1, 1, APT_APRON_FENCE_SE),
      MK(2, 1, APT_APRON_FENCE_SE),
      MK(3, 1, APT_HELIPAD_3_FENCE_SE_SW),
      MKEND
    }

Tiles for Helistation.

Definition at line 360 of file airport_defaults.h.

AirportTileTable* _tile_table_intercontinental[]`[static]`

Initial value:

     {
      _tile_table_intercontinental_0,
    }

Definition at line 332 of file airport_defaults.h.

AirportTileTable* _tile_table_international[]`[static]`

Initial value:

     {
      _tile_table_international_0,
    }

Definition at line 224 of file airport_defaults.h.

AirportTileTable* _tile_table_metropolitan[]`[static]`

Initial value:

     {
      _tile_table_metropolitan_0,
    }

Definition at line 166 of file airport_defaults.h.