mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
Ref T251, unit test for gnd flag sending
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user