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

Method getLongRangeDetection

src/Savegame/Base.cpp:868–879  ·  view source on GitHub ↗

* Returns the total amount of long range * detection facilities in the base. * @return Defense value. */

Source from the content-addressed store, hash-verified

866 * @return Defense value.
867 */
868int Base::getLongRangeDetection() const
869{
870 int total = 0;
871 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
872 {
873 if ((*i)->getBuildTime() == 0 && (*i)->getRules()->getRadarRange() > 1500)
874 {
875 total++;
876 }
877 }
878 return total;
879}
880
881/**
882 * Returns the total amount of craft of

Callers 1

initMethod · 0.80

Calls 3

getBuildTimeMethod · 0.45
getRadarRangeMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected