Ref T261, detect gnd.flag (from network) suppport, display gnd.flag info in UI

* add flag info in simulated aircraft
* allow to display info  in UI
* unified naming to "contains" in situation list
* updated client provider
This commit is contained in:
Klaus Basan
2018-05-09 08:11:31 +02:00
parent 6e249aa15d
commit 7ad4c29d28
12 changed files with 87 additions and 16 deletions

View File

@@ -115,12 +115,12 @@ namespace BlackMisc
return this->findBy(&CAircraftSituation::hasInboundGroundDetails, hasGroundInfo);
}
bool CAircraftSituationList::hasSituationWithoutGroundElevation() const
bool CAircraftSituationList::containsSituationWithoutGroundElevation() const
{
return this->contains(&CAircraftSituation::hasGroundElevation, false);
}
bool CAircraftSituationList::hasGroundElevationOutsideRange(const CLength &range) const
bool CAircraftSituationList::containsGroundElevationOutsideRange(const CLength &range) const
{
for (const CAircraftSituation &situation : *this)
{
@@ -297,6 +297,11 @@ namespace BlackMisc
return false;
}
bool CAircraftSituationList::containsOnGroundFromNetwork() const
{
return this->contains(&CAircraftSituation::isOnGroundFromNetwork, true);
}
int CAircraftSituationList::countOnGround(CAircraftSituation::IsOnGround og) const
{
int c = 0;