airport.h
changeset 950 165341d74973
parent 909 65cdb609b7a6
child 1093 4fdc46eaf423
equal deleted inserted replaced
949:419c0e2f438b 950:165341d74973
    11 	AT_SMALL = 0,
    11 	AT_SMALL = 0,
    12 	AT_LARGE = 1,
    12 	AT_LARGE = 1,
    13 	AT_HELIPORT = 2,
    13 	AT_HELIPORT = 2,
    14 	AT_METROPOLITAN = 3,
    14 	AT_METROPOLITAN = 3,
    15 	AT_INTERNATIONAL = 4,
    15 	AT_INTERNATIONAL = 4,
    16 	AT_OILRIG = 5
    16 	AT_OILRIG = 15
    17 };
    17 };
    18 
    18 
    19 // do not change unless you change v->subtype too. This aligns perfectly with its current setting
    19 // do not change unless you change v->subtype too. This aligns perfectly with its current setting
    20 enum {
    20 enum {
    21 	AIRCRAFT_ONLY = 0,
    21 	AIRCRAFT_ONLY = 0,
    24 };
    24 };
    25 
    25 
    26 // Finite sTate mAchine --> FTA
    26 // Finite sTate mAchine --> FTA
    27 typedef struct AirportFTAClass {
    27 typedef struct AirportFTAClass {
    28 	byte nofelements;							// number of positions the airport consists of
    28 	byte nofelements;							// number of positions the airport consists of
    29 	byte nofterminals;						// number of terminals this airport has
    29 	const byte *terminals;
    30 	byte nofterminalgroups;				// terminals belong to so many groups (MAX is the nofterminals)
    30 	const byte *helipads;
    31 	byte nofhelipads;							// number of helipads this airport has
       
    32 	byte nofhelipadgroups;				// helipads belong to so many groups (MAX is the nofhelipads)
       
    33 	byte entry_point;							// when an airplane arrives at this airport, enter it at position entry_point
    31 	byte entry_point;							// when an airplane arrives at this airport, enter it at position entry_point
    34 	byte acc_planes;							// accept airplanes or helicopters or both
    32 	byte acc_planes;							// accept airplanes or helicopters or both
    35 	const TileIndexDiffC *airport_depots;	// gives the position of the depots on the airports
    33 	const TileIndexDiffC *airport_depots;	// gives the position of the depots on the airports
    36 	byte nof_depots;							// number of depots this airport has
    34 	byte nof_depots;							// number of depots this airport has
    37 	struct AirportFTA *layout;		// state machine for airport
    35 	struct AirportFTA *layout;		// state machine for airport