* Returns the total amount of Psi Lab Space * available in the base. * @return Psi Lab space. */
| 1043 | * @return Psi Lab space. |
| 1044 | */ |
| 1045 | int Base::getAvailablePsiLabs() const |
| 1046 | { |
| 1047 | int total = 0; |
| 1048 | for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i) |
| 1049 | { |
| 1050 | if ((*i)->getBuildTime() == 0) |
| 1051 | { |
| 1052 | total += (*i)->getRules()->getPsiLaboratories(); |
| 1053 | } |
| 1054 | } |
| 1055 | return total; |
| 1056 | } |
| 1057 | |
| 1058 | /** |
| 1059 | * Returns the total amount of used |
no test coverage detected