* Returns the amount of engineers currently in use. * @return Amount of engineers. */
| 815 | * @return Amount of engineers. |
| 816 | */ |
| 817 | int Base::getAllocatedEngineers() const |
| 818 | { |
| 819 | int total = 0; |
| 820 | for (std::vector<Production *>::const_iterator iter = _productions.begin (); iter != _productions.end (); ++iter) |
| 821 | { |
| 822 | total += (*iter)->getAssignedEngineers(); |
| 823 | } |
| 824 | return total; |
| 825 | } |
| 826 | |
| 827 | /** |
| 828 | * Returns the total defense value of all |
no test coverage detected