From ff143c67085ad22abb5f6920873fd0ff9eddf603 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 2 May 2011 20:59:54 +0000 Subject: (svn r22413) -Document: even more stuff --- src/airport.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/airport.cpp') diff --git a/src/airport.cpp b/src/airport.cpp index 2173da9ed..389cbe2b8 100644 --- a/src/airport.cpp +++ b/src/airport.cpp @@ -16,6 +16,14 @@ #include "table/airporttile_ids.h" +/** + * Define a generic airport. + * @param name Suffix of the names of the airport data. + * @param terminals The terminals. + * @param num_helipads Number of heli pads. + * @param flags Information about the class of FTA. + * @param delta_z Height of the arport above the land. + */ #define AIRPORT_GENERIC(name, terminals, num_helipads, flags, delta_z) \ static AirportFTAClass _airportfta_ ## name(_airport_moving_data_ ## name, terminals, \ num_helipads, _airport_entries_ ## name, flags, _airport_fta_ ## name, delta_z); @@ -154,7 +162,12 @@ static uint16 AirportGetNofElements(const AirportFTAbuildup *apFA) return nofelements; } - +/** + * Construct the FTA given a description. + * @param nofelements The number of elements in the FTA. + * @param apFA The description of the FTA. + * @return The FTA describing the airport. + */ static AirportFTA *AirportBuildAutomata(uint nofelements, const AirportFTAbuildup *apFA) { AirportFTA *FAutomata = MallocT(nofelements); -- cgit v1.2.3-54-g00ecf