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

Method getGravShields

src/Savegame/Base.cpp:1224–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224int Base::getGravShields() const
1225{
1226 int total = 0;
1227 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
1228 {
1229 if ((*i)->getBuildTime() == 0 && (*i)->getRules()->isGravShield())
1230 {
1231 ++total;
1232 }
1233 }
1234 return total;
1235}
1236
1237void Base::setupDefenses()
1238{

Callers 1

BaseDefenseStateMethod · 0.80

Calls 3

isGravShieldMethod · 0.80
getBuildTimeMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected