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

Method getAvailableStores

src/Savegame/Base.cpp:609–620  ·  view source on GitHub ↗

* Returns the total amount of stores * available in the base. * @return Storage space. */

Source from the content-addressed store, hash-verified

607 * @return Storage space.
608 */
609int Base::getAvailableStores() const
610{
611 int total = 0;
612 for (std::vector<BaseFacility*>::const_iterator i = _facilities.begin(); i != _facilities.end(); ++i)
613 {
614 if ((*i)->getBuildTime() == 0)
615 {
616 total += (*i)->getRules()->getStorage();
617 }
618 }
619 return total;
620}
621
622/**
623 * Determines space taken up by ammo clips about to rearm craft.

Callers 8

inUseMethod · 0.80
initMethod · 0.80
SellStateMethod · 0.80
updateItemStringsMethod · 0.80
increaseByValueMethod · 0.80
PurchaseStateMethod · 0.80
increaseByValueMethod · 0.80
updateItemStringsMethod · 0.80

Calls 3

getStorageMethod · 0.80
getBuildTimeMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected