The default predicate used by the knapsack sort algorithm.
Overloaded constructor for initializing an inventory of specific dimensions and index offset.
Overloaded constructor for initializing an inventory of specific dimensions and index offset.
the horizontal size of the inventory
the vertical size of the inventory
the effective index of the first cell in the inventory
a GridInventory
object
Overloaded constructor for initializing an inventory of specific dimensions.
Overloaded constructor for initializing an inventory of specific dimensions.
the horizontal size of the inventory
the vertical size of the inventory
a GridInventory
object
Overloaded constructor.
Overloaded constructor.
a GridInventory
object
Accepting items that may or may not have previously been in an inventory, determine if there is a tight-fit arrangement for the items in the given inventory.
Accepting items that may or may not have previously been in an inventory, determine if there is a tight-fit arrangement for the items in the given inventory. Note that arrangement for future insertion.
a List
of items to be potentially re-inserted
the inventory in which they would be re-inserted in the future
a condition to sort the previous List
of elements
two List
s of Equipment
;
the first List
is composed of InventoryItemData
s that will be reinserted at the new start
index;
the second list is composed of Equipment
that will not be put back into the inventory