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

Method getAvailablePsiLabs

src/Savegame/Base.cpp:1045–1056  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1043 * @return Psi Lab space.
1044 */
1045int Base::getAvailablePsiLabs() const
1046{
1047 int total = 0;
1048 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
1049 {
1050 if ((*i)->getBuildTime() == 0)
1051 {
1052 total += (*i)->getRules()->getPsiLaboratories();
1053 }
1054 }
1055 return total;
1056}
1057
1058/**
1059 * Returns the total amount of used

Callers 8

inUseMethod · 0.80
viewRightClickMethod · 0.80
SoldiersStateMethod · 0.80
PsiTrainingStateMethod · 0.80
lstSoldiersClickMethod · 0.80
time1DayMethod · 0.80
time1MonthMethod · 0.80

Calls 3

getPsiLaboratoriesMethod · 0.80
getBuildTimeMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected