src/airport.h
changeset 5924 f9e5c4f44bc5
parent 5754 086187883012
child 5932 6f742a8da016
--- a/src/airport.h	Sat Feb 03 09:54:42 2007 +0000
+++ b/src/airport.h	Sat Feb 03 13:03:11 2007 +0000
@@ -130,6 +130,14 @@
 
 // Finite sTate mAchine --> FTA
 typedef struct AirportFTAClass {
+	public:
+		const AirportMovingData *MovingData(byte position) const
+		{
+			assert(position < nofelements);
+			return &moving_data[position];
+		}
+
+	const AirportMovingData *moving_data;
 	byte nofelements;                     // number of positions the airport consists of
 	const byte *terminals;
 	const byte *helipads;
@@ -154,7 +162,6 @@
 void InitializeAirports(void);
 void UnInitializeAirports(void);
 const AirportFTAClass *GetAirport(const byte airport_type);
-const AirportMovingData *GetAirportMovingData(byte airport_type, byte position);
 
 /** Get buildable airport bitmask.
  * @return get all buildable airports at this given time, bitmasked.