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

Method getAllocatedScientists

src/Savegame/Base.cpp:800–811  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

798 * @return Amount of scientists.
799*/
800int Base::getAllocatedScientists() const
801{
802 int total = 0;
803 const std::vector<ResearchProject *> & research (getResearch());
804 for (std::vector<ResearchProject *>::const_iterator itResearch = research.begin ();
805 itResearch != research.end ();
806 ++itResearch)
807 {
808 total += (*itResearch)->getAssigned ();
809 }
810 return total;
811}
812
813/**
814 * Returns the amount of engineers currently in use.

Callers 1

fillProjectListMethod · 0.80

Calls 1

getAssignedMethod · 0.80

Tested by

no test coverage detected