src/airport.cpp
branchgamebalance
changeset 9908 0fa543611bbe
parent 9895 7bd07f43b0e3
child 6734 6e4db2fda167
child 8300 da89335c3116
child 9722 ebf0ece7d8f6
equal deleted inserted replaced
9907:3b068c3a1c74 9908:0fa543611bbe
    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()