MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getAllocatedEngineers

Method getAllocatedEngineers

src/Savegame/Base.cpp:817–825  ·  view source on GitHub ↗

* Returns the amount of engineers currently in use. * @return Amount of engineers. */

Source from the content-addressed store, hash-verified

815 * @return Amount of engineers.
816*/
817int Base::getAllocatedEngineers() const
818{
819 int total = 0;
820 for (std::vector<Production *>::const_iterator iter = _productions.begin (); iter != _productions.end (); ++iter)
821 {
822 total += (*iter)->getAssignedEngineers();
823 }
824 return total;
825}
826
827/**
828 * Returns the total defense value of all

Callers 1

fillProductionListMethod · 0.80

Calls 1

getAssignedEngineersMethod · 0.80

Tested by

no test coverage detected