* Returns the total amount of long range * detection facilities in the base. * @return Defense value. */
| 866 | * @return Defense value. |
| 867 | */ |
| 868 | int 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 |
no test coverage detected