refs #250, helper methods

* in aircraft class to compare COM
* in context / runtime component to check vitality of core
This commit is contained in:
Klaus Basan
2014-05-22 12:15:01 +02:00
parent 23b1013be7
commit e0b06e1555
5 changed files with 36 additions and 0 deletions

View File

@@ -55,6 +55,14 @@ namespace BlackMisc
return this->m_distanceToPlane;
}
/*
* Same COM system data
*/
bool CAircraft::hasSameComData(const CComSystem &com1, const CComSystem &com2, const CTransponder &transponder)
{
return this->getCom1System() == com1 && this->getCom2System() == com2 && this->getTransponder() == transponder;
}
/*
* Valid for login
*/