@ -381,36 +381,36 @@ static Direction _default_airports_rotation[] = {
# undef MKEND
/** General AirportSpec 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 ) }
# define AS_GENERIC(fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, maint_cost, 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 , maint_cost, enabled, GRFFileProps ( AT_INVALID ) }
/** AirportSpec definition for airports without any depot. */
# define AS_ND(ap_name, size_x, size_y, min_year, max_year, catchment, noise, ttdpatch_type, class_id, name, preview) \
# define AS_ND(ap_name, size_x, size_y, min_year, max_year, catchment, noise, maint_cost, ttdpatch_type, class_id, name, preview) \
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 )
size_x , size_y , noise , catchment , min_year , max_year , maint_cost, ttdpatch_type, class_id , name , preview , true )
/** AirportSpec definition for airports with at least one depot. */
# define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise, ttdpatch_type, class_id, name, preview) \
# define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise, maint_cost, ttdpatch_type, class_id, name, preview) \
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 )
size_x , size_y , noise , catchment , min_year , max_year , maint_cost, ttdpatch_type, class_id , name , preview , true )
/* The helidepot and helistation have ATP_TTDP_SMALL because they are at ground level */
extern const AirportSpec _origin_airport_specs [ ] = {
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 ) ,
AS ( country , 4 , 3 , 0 , 1959 , 4 , 3 , 7 , ATP_TTDP_SMALL , APC_SMALL , STR_AIRPORT_SMALL , SPR_AIRPORT_PREVIEW_SMALL ) ,
AS ( city , 6 , 6 , 1955 , MAX_YEAR , 5 , 5 , 24 , ATP_TTDP_LARGE , APC_LARGE , STR_AIRPORT_CITY , SPR_AIRPORT_PREVIEW_LARGE ) ,
AS_ND ( heliport , 1 , 1 , 1963 , MAX_YEAR , 4 , 1 , 4 , ATP_TTDP_HELIPORT , APC_HELIPORT , STR_AIRPORT_HELIPORT , SPR_AIRPORT_PREVIEW_HELIPORT ) ,
AS ( metropolitan , 6 , 6 , 1980 , MAX_YEAR , 6 , 8 , 28 , ATP_TTDP_LARGE , APC_LARGE , STR_AIRPORT_METRO , SPR_AIRPORT_PREVIEW_METROPOLITAN ) ,
AS ( international , 7 , 7 , 1990 , MAX_YEAR , 8 , 17 , 42 , ATP_TTDP_LARGE , APC_HUB , STR_AIRPORT_INTERNATIONAL , SPR_AIRPORT_PREVIEW_INTERNATIONAL ) ,
AS ( commuter , 5 , 4 , 1983 , MAX_YEAR , 4 , 4 , 20 , ATP_TTDP_SMALL , APC_SMALL , STR_AIRPORT_COMMUTER , SPR_AIRPORT_PREVIEW_COMMUTER ) ,
AS ( helidepot , 2 , 2 , 1976 , MAX_YEAR , 4 , 2 , 7 , ATP_TTDP_SMALL , APC_HELIPORT , STR_AIRPORT_HELIDEPOT , SPR_AIRPORT_PREVIEW_HELIDEPOT ) ,
AS ( intercontinental , 9 , 11 , 2002 , MAX_YEAR , 10 , 25 , 72 , ATP_TTDP_LARGE , APC_HUB , STR_AIRPORT_INTERCONTINENTAL , SPR_AIRPORT_PREVIEW_INTERCONTINENTAL ) ,
AS ( helistation , 4 , 2 , 1980 , MAX_YEAR , 4 , 3 , 14 , 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 , 0 , ATP_TTDP_OILRIG , APC_HELIPORT , STR_NULL , 0 , false ) ,
} ;
assert_compile ( NEW_AIRPORT_OFFSET = = lengthof ( _origin_airport_specs ) ) ;
AirportSpec AirportSpec : : dummy = AS_GENERIC ( & _airportfta_dummy , NULL , _default_airports_rotation , 0 , NULL , 0 , 0 , 0 , 0 , 0 , MIN_YEAR , MIN_YEAR , ATP_TTDP_LARGE , APC_BEGIN , STR_NULL , 0 , false ) ;
AirportSpec AirportSpec : : dummy = AS_GENERIC ( & _airportfta_dummy , NULL , _default_airports_rotation , 0 , NULL , 0 , 0 , 0 , 0 , 0 , MIN_YEAR , MIN_YEAR , 0 , ATP_TTDP_LARGE , APC_BEGIN , STR_NULL , 0 , false ) ;
# undef AS
# undef AS_ND