airport.cpp File Reference

Functions related to airports. More...

#include "stdafx.h"
#include "debug.h"
#include "airport.h"
#include "table/airport_movement.h"
#include "core/alloc_func.hpp"
#include "date_func.h"
#include "settings_type.h"
#include "table/airporttile_ids.h"
#include "table/airport_defaults.h"
#include "table/airporttiles.h"

Go to the source code of this file.

Functions

void InitializeAirports ()
void UnInitializeAirports ()
static uint16 AirportGetNofElements (const AirportFTAbuildup *apFA)
 Get the number of elements of a source Airport state automata Since it is actually just a big array of AirportFTA types, we only know one element from the other by differing 'position' identifiers.
static AirportFTAAirportBuildAutomata (uint nofelements, const AirportFTAbuildup *apFA)
static byte AirportGetTerminalCount (const byte *terminals, byte *groups)
 We calculate the terminal/helipod count based on the data passed to us This data (terminals) contains an index as a first element as to how many groups there are, and then the number of terminals for each group.
static byte AirportTestFTA (uint nofelements, const AirportFTA *layout, const byte *terminals)
const AirportFTAClassGetAirport (const byte airport_type)

Variables

static AirportFTAClass_dummy_airport
static AirportFTAClass_country_airport
static AirportFTAClass_city_airport
static AirportFTAClass_oilrig
static AirportFTAClass_heliport
static AirportFTAClass_metropolitan_airport
static AirportFTAClass_international_airport
static AirportFTAClass_commuter_airport
static AirportFTAClass_heli_depot
static AirportFTAClass_intercontinental_airport
static AirportFTAClass_heli_station

Detailed Description

Functions related to airports.

Definition in file airport.cpp.


Generated on Mon Aug 30 19:37:04 2010 for OpenTTD by  doxygen 1.6.1