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

Method getUsedPsiLabs

src/Savegame/Base.cpp:1063–1074  ·  view source on GitHub ↗

* Returns the total amount of used * Psi Lab Space in the base. * @return used Psi Lab space. */

Source from the content-addressed store, hash-verified

1061 * @return used Psi Lab space.
1062 */
1063int Base::getUsedPsiLabs() const
1064{
1065 int total = 0;
1066 for (std::vector<Soldier*>::const_iterator s = _soldiers.begin(); s != _soldiers.end(); ++s)
1067 {
1068 if ((*s)->isInPsiTraining())
1069 {
1070 total ++;
1071 }
1072 }
1073 return total;
1074}
1075
1076/**
1077 * Returns the total amount of used

Callers 3

inUseMethod · 0.80
lstSoldiersClickMethod · 0.80

Calls 1

isInPsiTrainingMethod · 0.80

Tested by

no test coverage detected