equal
deleted
inserted
replaced
18 * - true: full-report, print out every state and choice with string-names |
18 * - true: full-report, print out every state and choice with string-names |
19 * OR |
19 * OR |
20 * - false: give a summarized report which only shows current and next position */ |
20 * - false: give a summarized report which only shows current and next position */ |
21 //#define DEBUG_AIRPORT false |
21 //#define DEBUG_AIRPORT false |
22 |
22 |
|
23 static AirportFTAClass *DummyAirport; |
23 static AirportFTAClass *CountryAirport; |
24 static AirportFTAClass *CountryAirport; |
24 static AirportFTAClass *CityAirport; |
25 static AirportFTAClass *CityAirport; |
25 static AirportFTAClass *Oilrig; |
26 static AirportFTAClass *Oilrig; |
26 static AirportFTAClass *Heliport; |
27 static AirportFTAClass *Heliport; |
27 static AirportFTAClass *MetropolitanAirport; |
28 static AirportFTAClass *MetropolitanAirport; |
32 static AirportFTAClass *HeliStation; |
33 static AirportFTAClass *HeliStation; |
33 |
34 |
34 |
35 |
35 void InitializeAirports() |
36 void InitializeAirports() |
36 { |
37 { |
|
38 DummyAirport = new AirportFTAClass( |
|
39 _airport_moving_data_dummy, |
|
40 NULL, |
|
41 NULL, |
|
42 _airport_entries_dummy, |
|
43 AirportFTAClass::ALL, |
|
44 _airport_fta_dummy, |
|
45 NULL, |
|
46 0, |
|
47 0, 0, |
|
48 0, |
|
49 0 |
|
50 ); |
|
51 |
37 CountryAirport = new AirportFTAClass( |
52 CountryAirport = new AirportFTAClass( |
38 _airport_moving_data_country, |
53 _airport_moving_data_country, |
39 _airport_terminal_country, |
54 _airport_terminal_country, |
40 NULL, |
55 NULL, |
41 _airport_entries_country, |
56 _airport_entries_country, |
461 case AT_INTERNATIONAL: return InternationalAirport; |
476 case AT_INTERNATIONAL: return InternationalAirport; |
462 case AT_COMMUTER: return CommuterAirport; |
477 case AT_COMMUTER: return CommuterAirport; |
463 case AT_HELIDEPOT: return HeliDepot; |
478 case AT_HELIDEPOT: return HeliDepot; |
464 case AT_INTERCON: return IntercontinentalAirport; |
479 case AT_INTERCON: return IntercontinentalAirport; |
465 case AT_HELISTATION: return HeliStation; |
480 case AT_HELISTATION: return HeliStation; |
|
481 case AT_DUMMY: return DummyAirport; |
466 } |
482 } |
467 } |
483 } |
468 |
484 |
469 |
485 |
470 uint32 GetValidAirports() |
486 uint32 GetValidAirports() |