* Returns the total amount of monthly costs * for maintaining the facilities in the base. * @return Maintenance costs. */
| 932 | * @return Maintenance costs. |
| 933 | */ |
| 934 | int Base::getFacilityMaintenance() const |
| 935 | { |
| 936 | int total = 0; |
| 937 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 938 | { |
| 939 | if ((*i)->getBuildTime() == 0) |
| 940 | { |
| 941 | total += (*i)->getRules()->getMonthlyCost(); |
| 942 | } |
| 943 | } |
| 944 | return total; |
| 945 | } |
| 946 | |
| 947 | /** |
| 948 | * Returns the total amount of all the maintenance |
no test coverage detected