checkAvailableUnits

fun checkAvailableUnits(amountNeeded: Int, resourceList: List<Resource>): Boolean

Checks if the number of available units in the list is greater than or equal to the amount needed.

Parameters

amountNeeded

must be greater than 0

resourceList

the list to consider.