OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
97 RUNWAY_IN_OUT_block = 1ULL << 8,
98 RUNWAY_IN_block = 1ULL << 8,
99 AIRPORT_BUSY_block = 1ULL << 8,
100 RUNWAY_OUT_block = 1ULL << 9,
101 TAXIWAY_BUSY_block = 1ULL << 10,
102 OUT_WAY_block = 1ULL << 11,
103 IN_WAY_block = 1ULL << 12,
104 AIRPORT_ENTRANCE_block = 1ULL << 13,
105 TERM_GROUP1_block = 1ULL << 14,
106 TERM_GROUP2_block = 1ULL << 15,
107 HANGAR2_AREA_block = 1ULL << 16,
108 TERM_GROUP2_ENTER1_block = 1ULL << 17,
109 TERM_GROUP2_ENTER2_block = 1ULL << 18,
110 TERM_GROUP2_EXIT1_block = 1ULL << 19,
111 TERM_GROUP2_EXIT2_block = 1ULL << 20,
112 PRE_HELIPAD_block = 1ULL << 21,
118 HANGAR1_AREA_block = 1ULL << 26,
119 OUT_WAY2_block = 1ULL << 27,
120 IN_WAY2_block = 1ULL << 28,
121 RUNWAY_IN2_block = 1ULL << 29,
124 OUT_WAY_block2 = 1ULL << 31,
127 NOTHING_block = 1ULL << 30,
byte heading
heading (current orders), guiding an airplane to its target on an airport
@ HELILANDING
Helicopter wants to land.
uint32 TileIndex
The index/ID of a Tile.
static const uint INVALID_AIRPORTTILE
id for an invalid airport tile
Direction
Defines the 8 directions on the map.
@ ENDTAKEOFF
Airplane has reached end-point of the take-off runway.
A single location on an airport where aircraft can move to.
@ AT_INTERNATIONAL
International airport.
Flags
Bitmask of airport flags.
static const uint64 HELIPAD3_block
Block belonging to helipad 3.
@ AMED_LAND
Landing onto landing strip.
@ HELIENDLANDING
Helicopter wants to finish landing.
@ AT_HELISTATION
Heli station airport.
static const uint64 TERM5_block
Block belonging to terminal 5.
@ SHORT_STRIP
This airport has a short landing strip, dangerous for fast aircraft.
@ AMED_TAKEOFF
Takeoff movement.
@ TERM1
Heading for terminal 1.
const byte num_helipads
Number of helipads on this airport. When 0 helicopters will go to normal terminals.
@ ENDLANDING
Airplane wants to finish landing.
byte GetVehiclePosOnBuild(TileIndex hangar_tile)
Get the vehicle position when an aircraft is build at the given tile.
static const uint64 HELIPAD2_block
Block belonging to helipad 2.
@ HANGAR
Heading for hangar.
@ TERM7
Heading for terminal 7.
Direction direction
Direction to turn the aircraft after reaching the destination.
@ TERM3
Heading for terminal 3.
@ AMED_EXACTPOS
Go exactly to the destination coordinates.
@ AT_METROPOLITAN
Metropolitan airport.
const AirportMovingData * moving_data
Movement data.
State machine input struct (from external file, etc.) Finite sTate mAchine --> FTA.
static const uint NUM_AIRPORTTILES_PER_GRF
Number of airport tiles per NewGRF; limited to 255 to allow extending Action3 with an extended byte l...
const AirportFTAClass * GetAirport(const byte airport_type)
Get the finite state machine of an airport type.
AirportMovingDataFlags
Flags for airport movement data.
@ AMED_SLOWTURN
Turn slowly (mostly used in the air).
uint16 flag
special flags when moving towards the destination.
byte nofelements
number of positions the airport consists of
@ AMED_HOLD
Holding pattern movement (above the airport).
@ NUM_AIRPORTS_PER_GRF
Maximal number of airports per NewGRF.
struct AirportFTA * layout
state machine for airport
static const uint NUM_AIRPORTTILES
Total number of airport tiles.
@ AT_COMMUTER
Commuter airport.
@ ALL
Mask to check for both planes and helicopters.
Flags flags
Flags for this airport type.
Internal structure used in openttd - Finite sTate mAchine --> FTA.
@ AT_INVALID
Invalid airport.
@ NUM_AIRPORTS
Maximal number of airports in total.
AirportMovingData RotateAirportMovingData(const AirportMovingData *orig, Direction rotation, uint num_tiles_x, uint num_tiles_y)
Rotate the airport moving data to another rotation.
Finite sTate mAchine (FTA) of an airport.
static const uint64 TERM7_block
Block belonging to terminal 7.
@ TERM5
Heading for terminal 5.
@ HELIPAD3
Heading for helipad 3.
static const uint64 TERM1_block
Movement Blocks on Airports blocks (eg_airport_flags).
static const uint MAX_TERMINALS
Some airport-related constants.
@ TERM2
Heading for terminal 2.
byte delta_z
Z adjustment for helicopter pads.
int16 x
x-coordinate of the destination.
static const uint64 AIRPORT_CLOSED_block
Dummy block for indicating a closed airport.
AirportFTA * next
possible extra movement choices from this position
static const uint MAX_ELEMENTS
maximum number of aircraft positions at airport
AirportMovementStates
Movement States on Airports (headings target)
@ NEW_AIRPORT_OFFSET
Number of the first newgrf airport.
static const uint64 RUNWAY_OUT2_block
@ HELIPAD1
Heading for helipad 1.
int16 y
y-coordinate of the destination.
@ HELITAKEOFF
Helicopter wants to leave the airport.
static const uint MAX_HELIPADS
maximum number of helipads per airport
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
uint64 block
64 bit blocks (st->airport.flags), should be enough for the most complex airports
@ AT_HELIDEPOT
Heli depot.
@ TERMGROUP
Aircraft is looking for a free terminal in a terminalgroup.
AirportTypes
Airport types.
@ TO_ALL
Go in this direction for every target.
const byte * terminals
Array with the number of terminal groups, followed by the number of terminals in each group.
@ STARTTAKEOFF
Airplane has arrived at a runway for take-off.
static const uint64 TERM8_block
Block belonging to terminal 8.
@ MAX_HEADINGS
Last valid target to head for.
static const uint NEW_AIRPORTTILE_OFFSET
offset of first newgrf airport tile
@ AMED_HELI_RAISE
Helicopter take-off.
@ LANDING
Airplane wants to land.
@ AT_INTERCON
Intercontinental airport.
static const uint64 TERM4_block
Block belonging to terminal 4.
byte position
the position that an airplane is at
@ TERM6
Heading for terminal 6.
@ HELICOPTERS
Can helicopters land on this airport type?
const byte * entry_points
when an airplane arrives at this airport, enter it at position entry_point, index depends on directio...
@ TERM8
Heading for terminal 8.
@ TAKEOFF
Airplane wants to leave the airport.
@ AIRPLANES
Can planes land on this airport type?
static const uint64 HELIPAD_GROUP_block
const AirportMovingData * MovingData(byte position) const
Get movement data at a position.
@ HELIPAD2
Heading for helipad 2.
static const uint64 HELIPAD1_block
Block belonging to helipad 1.
static const uint64 TERM3_block
Block belonging to terminal 3.
byte next_position
next position from this position
static const uint64 TERM2_block
Block belonging to terminal 2.
static const uint64 TERM6_block
Block belonging to terminal 6.
@ FLYING
Vehicle is flying in the air.
@ AMED_HELI_LOWER
Helicopter landing.
@ AT_OILRIG
Oilrig airport.
@ AMED_BRAKE
Taxiing at the airport.
@ TERM4
Heading for terminal 4.
@ AMED_NOSPDCLAMP
No speed restrictions.