};
-#endif // _FG_AIEntity_HXX
\ No newline at end of file
+#endif // _FG_AIEntity_HXX
+
};
-#endif // _FG_AILocalTraffic_HXX
\ No newline at end of file
+#endif // _FG_AILocalTraffic_HXX
(*ai_list_itr)->Update();
++ai_list_itr;
}
-}
\ No newline at end of file
+}
#ifndef _FG_ATC_HXX
#define _FG_ATC_HXX
+#include <simgear/compiler.h>
+
#include <iostream>
#include <string>
+SG_USING_STD(ostream);
+SG_USING_STD(string);
+
// Possible types of ATC type that the radios may be tuned to.
// INVALID implies not tuned in to anything.
enum atc_type {
void FGApproach::get_active_runway() {
sgVec3 position = { lat, lon, elev };
+
+#ifndef FG_NEW_ENVIRONMENT
FGPhysicalProperty stationweather = WeatherDatabase->get(position);
+#endif
SGPath path( globals->get_fg_root() );
path.append( "Airports" );
FGRunways runways( path.c_str() );
//Set the heading to into the wind
+#ifndef FG_NEW_ENVIRONMENT
double wind_x = stationweather.Wind[0];
double wind_y = stationweather.Wind[1];
+#else
+ double wind_x = 0;
+ double wind_y = 0; // FIXME
+#endif
double speed = sqrt( wind_x*wind_x + wind_y*wind_y ) * SG_METER_TO_NM / (60.0*60.0);
double hdg;
}
num_planes = np;
return num_planes;
-}
\ No newline at end of file
+}
return in >> skipeol;
}
-#endif // _FG_APPROACH_HXX
\ No newline at end of file
+#endif // _FG_APPROACH_HXX
return 0;
-}
\ No newline at end of file
+}
#include <simgear/math/sg_geodesy.hxx>
#include <plib/sg.h>
+#include <iostream>
#include <string>
SG_USING_STD(string);
+SG_USING_STD(ios);
#include "ATC.hxx"
}
-#endif //_FG_TOWER_HXX
\ No newline at end of file
+#endif //_FG_TOWER_HXX
}
return false;
-}
\ No newline at end of file
+}
extern FGTowerList *current_towerlist;
-#endif // _FG_TOWERLIST_HXX
\ No newline at end of file
+#endif // _FG_TOWERLIST_HXX