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

Method getSpaceAvailable

src/Savegame/Craft.cpp:829–832  ·  view source on GitHub ↗

* Returns the amount of space available for * soldiers and vehicles. * @return Space available. */

Source from the content-addressed store, hash-verified

827 * @return Space available.
828 */
829int Craft::getSpaceAvailable() const
830{
831 return _rules->getSoldiers() - getSpaceUsed();
832}
833
834/**
835 * Returns the amount of space in use by

Callers 5

initMethod · 0.80
lstSoldiersClickMethod · 0.80
CraftEquipmentStateMethod · 0.80
updateQuantityMethod · 0.80
moveRightByValueMethod · 0.80

Calls 1

getSoldiersMethod · 0.45

Tested by

no test coverage detected