mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user