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

Method getHyperDetection

src/Savegame/Base.cpp:1028–1038  ·  view source on GitHub ↗

* Returns whether or not this base * is equipped with hyper-wave * detection facilities. * @return True if the base has hyper-wave detection. */

Source from the content-addressed store, hash-verified

1026 * @return True if the base has hyper-wave detection.
1027 */
1028bool Base::getHyperDetection() const
1029{
1030 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
1031 {
1032 if ((*i)->getRules()->isHyperwave() && (*i)->getBuildTime() == 0)
1033 {
1034 return true;
1035 }
1036 }
1037 return false;
1038}
1039
1040/**
1041 * Returns the total amount of Psi Lab Space

Callers

nothing calls this directly

Calls 3

isHyperwaveMethod · 0.80
getRulesMethod · 0.45
getBuildTimeMethod · 0.45

Tested by

no test coverage detected