* 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
| 595 | * @return True if the base's stores are over their limit. |
| 596 | */ |
| 597 | bool 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 |
no outgoing calls
no test coverage detected