MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getAvailableHangars

Method getAvailableHangars

src/Savegame/Base.cpp:756–767  ·  view source on GitHub ↗

* Returns the total amount of hangars * available in the base. * @return Number of hangars. */

Source from the content-addressed store, hash-verified

754 * @return Number of hangars.
755 */
756int Base::getAvailableHangars() const
757{
758 int total = 0;
759 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
760 {
761 if ((*i)->getBuildTime() == 0)
762 {
763 total += (*i)->getRules()->getCrafts();
764 }
765 }
766 return total;
767}
768
769/**
770 * Return laboratories space not used by a ResearchProject

Callers 6

inUseMethod · 0.80
lstProdClickMethod · 0.80
moreUnitMethod · 0.80
initMethod · 0.80
increaseByValueMethod · 0.80
increaseByValueMethod · 0.80

Calls 3

getBuildTimeMethod · 0.45
getCraftsMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected