* Returns the amount of scientists currently in use. * @return Amount of scientists. */
| 798 | * @return Amount of scientists. |
| 799 | */ |
| 800 | int Base::getAllocatedScientists() const |
| 801 | { |
| 802 | int total = 0; |
| 803 | const std::vector<ResearchProject *> & research (getResearch()); |
| 804 | for (std::vector<ResearchProject *>::const_iterator itResearch = research.begin (); |
| 805 | itResearch != research.end (); |
| 806 | ++itResearch) |
| 807 | { |
| 808 | total += (*itResearch)->getAssigned (); |
| 809 | } |
| 810 | return total; |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * Returns the amount of engineers currently in use. |
no test coverage detected