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(fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, ttdpatch_type, class_id, name, preview, enabled)   {fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, name, ttdpatch_type, class_id, preview, enabled, GRFFileProps(AT_INVALID)}
 General AirportSpec definition.
#define AS_ND(ap_name, size_x, size_y, min_year, max_year, catchment, noise, ttdpatch_type, class_id, name, preview)
 AirportSpec definition for airports without any depot.
#define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise, ttdpatch_type, class_id, name, preview)
 AirportSpec definition for airports with at least one depot.

Functions

 assert_compile (NEW_AIRPORT_OFFSET==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 Direction _default_airports_rotation []
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,
ttdpatch_type,
class_id,
name,
preview   ) 
Value:
AS_GENERIC(&_airportfta_##ap_name, _tile_table_##ap_name, _default_airports_rotation, lengthof(_tile_table_##ap_name), _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), \
    size_x, size_y, noise, catchment, min_year, max_year, ttdpatch_type, class_id, name, preview, true)

AirportSpec definition for airports with at least one depot.

Definition at line 393 of file airport_defaults.h.

#define AS_GENERIC ( fsm,
att,
rot,
att_len,
depot_tbl,
num_depots,
size_x,
size_y,
noise,
catchment,
min_year,
max_year,
ttdpatch_type,
class_id,
name,
preview,
enabled   )     {fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, name, ttdpatch_type, class_id, preview, enabled, GRFFileProps(AT_INVALID)}

General AirportSpec definition.

Definition at line 384 of file airport_defaults.h.

#define AS_ND ( ap_name,
size_x,
size_y,
min_year,
max_year,
catchment,
noise,
ttdpatch_type,
class_id,
name,
preview   ) 
Value:
AS_GENERIC(&_airportfta_##ap_name, _tile_table_##ap_name, _default_airports_rotation, lengthof(_tile_table_##ap_name), NULL, 0, \
    size_x, size_y, noise, catchment, min_year, max_year, ttdpatch_type, class_id, name, preview, true)

AirportSpec definition for airports without any depot.

Definition at line 388 of file airport_defaults.h.

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

Definition of an airport tiles layout.

Parameters:
x offset x of this tile
y offset y of this tile
m StationGfx of the tile
See also:
_airport_specs
AirportTileTable

Definition at line 23 of file airport_defaults.h.


Variable Documentation

Direction _default_airports_rotation[] [static]
Initial value:
 {
  DIR_N,
}

Definition at line 376 of file airport_defaults.h.

const AirportSpec _origin_airport_specs[]
Initial value:
 {
  AS(country,          4, 3,     0,     1959,  4,  3, ATP_TTDP_SMALL,    APC_SMALL,    STR_AIRPORT_SMALL,            SPR_AIRPORT_PREVIEW_SMALL),
  AS(city,             6, 6,  1955, MAX_YEAR,  5,  5, ATP_TTDP_LARGE,    APC_LARGE,    STR_AIRPORT_CITY,             SPR_AIRPORT_PREVIEW_LARGE),
  AS_ND(heliport,      1, 1,  1963, MAX_YEAR,  4,  1, ATP_TTDP_HELIPORT, APC_HELIPORT, STR_AIRPORT_HELIPORT,         SPR_AIRPORT_PREVIEW_HELIPORT),
  AS(metropolitan,     6, 6,  1980, MAX_YEAR,  6,  8, ATP_TTDP_LARGE,    APC_LARGE,    STR_AIRPORT_METRO,            SPR_AIRPORT_PREVIEW_METROPOLITAN),
  AS(international,    7, 7,  1990, MAX_YEAR,  8, 17, ATP_TTDP_LARGE,    APC_HUB,      STR_AIRPORT_INTERNATIONAL,    SPR_AIRPORT_PREVIEW_INTERNATIONAL),
  AS(commuter,         5, 4,  1983, MAX_YEAR,  4,  4, ATP_TTDP_SMALL,    APC_SMALL,    STR_AIRPORT_COMMUTER,         SPR_AIRPORT_PREVIEW_COMMUTER),
  AS(helidepot,        2, 2,  1976, MAX_YEAR,  4,  2, ATP_TTDP_SMALL,    APC_HELIPORT, STR_AIRPORT_HELIDEPOT,        SPR_AIRPORT_PREVIEW_HELIDEPOT),
  AS(intercontinental, 9, 11, 2002, MAX_YEAR, 10, 25, ATP_TTDP_LARGE,    APC_HUB,      STR_AIRPORT_INTERCONTINENTAL, SPR_AIRPORT_PREVIEW_INTERCONTINENTAL),
  AS(helistation,      4, 2,  1980, MAX_YEAR,  4,  3, ATP_TTDP_SMALL,    APC_HELIPORT, STR_AIRPORT_HELISTATION,      SPR_AIRPORT_PREVIEW_HELISTATION),
  AS_GENERIC(&_airportfta_oilrig, NULL, _default_airports_rotation, 0, NULL, 0, 1, 1, 0, 4, 0, 0, ATP_TTDP_OILRIG, APC_HELIPORT, STR_NULL, 0, false),
}
AirportTileTable* _tile_table_city[] [static]
Initial value:

Definition at line 121 of file airport_defaults.h.

AirportTileTable* _tile_table_commuter[] [static]
Initial value:

Definition at line 76 of file airport_defaults.h.

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:

Definition at line 47 of file airport_defaults.h.

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:

Definition at line 355 of file airport_defaults.h.

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:

Definition at line 342 of file airport_defaults.h.

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:

Definition at line 372 of file airport_defaults.h.

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:

Definition at line 332 of file airport_defaults.h.

AirportTileTable* _tile_table_international[] [static]
Initial value:

Definition at line 224 of file airport_defaults.h.

AirportTileTable* _tile_table_metropolitan[] [static]
Initial value:

Definition at line 166 of file airport_defaults.h.


Generated on Sun Jan 23 01:49:25 2011 for OpenTTD by  doxygen 1.6.1