Add simple getter for all runways to FGAirport
This commit is contained in:
parent
f2d6b76b13
commit
32f4fdfaf7
2 changed files with 13 additions and 0 deletions
|
@ -314,6 +314,14 @@ bool FGAirport::hasHardRunwayOfLengthFt(double aLengthFt) const
|
|||
return false;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
FGRunwayList FGAirport::getRunways() const
|
||||
{
|
||||
loadRunways();
|
||||
|
||||
return mRunways;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
FGRunwayList FGAirport::getRunwaysWithoutReciprocals() const
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue