1
0
Fork 0

Add simple getter for all runways to FGAirport

This commit is contained in:
Torsten Dreyer 2015-03-28 00:33:26 +01:00
parent f2d6b76b13
commit 32f4fdfaf7
2 changed files with 13 additions and 0 deletions

View file

@ -314,6 +314,14 @@ bool FGAirport::hasHardRunwayOfLengthFt(double aLengthFt) const
return false;
}
//------------------------------------------------------------------------------
FGRunwayList FGAirport::getRunways() const
{
loadRunways();
return mRunways;
}
//------------------------------------------------------------------------------
FGRunwayList FGAirport::getRunwaysWithoutReciprocals() const
{

View file

@ -130,6 +130,11 @@ class FGAirport : public FGPositioned
* an airport *once*, not *twice* - eg mapping and nav-display code.
*/
FGRunwayList getRunwaysWithoutReciprocals() const;
/**
* Retrieve all runways at the airport
*/
FGRunwayList getRunways() const;
/**
* Useful predicate for FMS/GPS/NAV displays and similar - check if this