Ref T273, high level functions to compare "equal" situations

Remark: "==" compares a lot of attributes, those will only compare values to determine equal PBH/vector ...
This commit is contained in:
Klaus Basan
2018-06-03 00:29:40 +02:00
parent 6f8d980d2c
commit a3b8d776a0
6 changed files with 71 additions and 3 deletions

View File

@@ -68,6 +68,13 @@ namespace BlackMisc
return this->getPartsDetails() == NotSet && m_flapsPercentage < 0;
}
bool CAircraftParts::equalValues(const CAircraftParts &other) const
{
// currently same as some values are diabled for comparison
// but that could change in future
return other == *this;
}
const CAircraftParts &CAircraftParts::null()
{
static const CAircraftParts null(-1);