* Returns the total amount of used * Psi Lab Space in the base. * @return used Psi Lab space. */
| 1061 | * @return used Psi Lab space. |
| 1062 | */ |
| 1063 | int Base::getUsedPsiLabs() const |
| 1064 | { |
| 1065 | int total = 0; |
| 1066 | for (std::vector<Soldier*>::const_iterator s = _soldiers.begin(); s != _soldiers.end(); ++s) |
| 1067 | { |
| 1068 | if ((*s)->isInPsiTraining()) |
| 1069 | { |
| 1070 | total ++; |
| 1071 | } |
| 1072 | } |
| 1073 | return total; |
| 1074 | } |
| 1075 | |
| 1076 | /** |
| 1077 | * Returns the total amount of used |
no test coverage detected