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

Method storesOverfull

src/Savegame/Base.cpp:597–602  ·  view source on GitHub ↗

* Checks if the base's stores are overfull. * * Supplying an offset will add/subtract to the used capacity before performing the check. * A positive offset simulates adding items to the stores, whereas a negative offset * can be used to check whether sufficient items have been removed to stop the stores overflowing. * @param offset Adjusts the used capacity. * @return True if the base's stor

Source from the content-addressed store, hash-verified

595 * @return True if the base's stores are over their limit.
596 */
597bool Base::storesOverfull(double offset)
598{
599 double capacity = getAvailableStores();
600 double used = getUsedStores();
601 return used + offset > capacity;
602}
603
604/**
605 * Returns the total amount of stores

Callers 8

btnOkClickMethod · 0.80
btnOkClickMethod · 0.80
btnOkClickMethod · 0.80
SellStateMethod · 0.80
updateItemStringsMethod · 0.80
increaseByValueMethod · 0.80
btnOkClickMethod · 0.80
time1HourMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected