Ref T251, unit test for gnd flag sending

This commit is contained in:
Klaus Basan
2018-02-14 04:06:47 +01:00
parent 63d7e36389
commit a06f59723a
7 changed files with 154 additions and 13 deletions

View File

@@ -43,6 +43,16 @@ namespace BlackMisc
return this->getEngine(engineNumber).isOn();
}
void CAircraftEngineList::initEngines(int engineNumber, bool on)
{
this->clear();
for (int e = 0; e < engineNumber; e++)
{
const CAircraftEngine engine(e + 1, on);
this->push_back(engine);
}
}
bool CAircraftEngineList::isAnyEngineOn() const
{
return this->contains(&CAircraftEngine::isOn, true);