* Returns whether or not this base * is equipped with hyper-wave * detection facilities. * @return True if the base has hyper-wave detection. */
| 1026 | * @return True if the base has hyper-wave detection. |
| 1027 | */ |
| 1028 | bool 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 |
nothing calls this directly
no test coverage detected