Ref T259, Ref T243 improved utility functions so parts can be guessed in interpolator

* engine count
* aligned naming to "getEnginesCount"
* formatting
This commit is contained in:
Klaus Basan
2018-04-06 00:30:52 +02:00
committed by Roland Winklmeier
parent c3f05ea1cd
commit e3d17859a0
10 changed files with 150 additions and 90 deletions

View File

@@ -57,6 +57,17 @@ namespace BlackMisc
}
}
void CAircraftEngineList::setEngines(const CAircraftEngine &engine, int engineNumber)
{
this->clear();
for (int e = 0; e < engineNumber; e++)
{
CAircraftEngine copy(engine);
copy.setNumber(e + 1); // 1 based
this->push_back(engine);
}
}
void CAircraftEngineList::initEngines(int engineNumber, bool on)
{
this->clear();