User:Reflecs

Inventory model specification notes (WIP)
(an ongoing attempt to extract specific requirements from, and  and Proposals:Encumbrance Armor Clothes and implement them)


 * Structure: class built around a set of categories of slots containing items. to be used by the InventoryGUI (ex-"Inventory") class.
 * Terms:
 * slot
 * A location for exactly one item (as per Proposals:Encumbrance Armor Clothes) with a fixed capacity.
 * OR one square element of a "tetris" inventory (current Inventory code)
 * category
 * Type of storage (belt, ready, shoulder, etc.)


 * Supported operations:
 * addItem(item,slot) : bool
 * stores an item in a slot, if possible
 * removeItem(item) : item
 * removes (and returns) an item from the inventory, no matter what slot it is in
 * listItems, : set
 * returns the set of all items
 * listItems(slot) : set
 * returns the set of items inside the slot
 * listSlots : set
 * returns a set of all slots in the inventory
 * getBulk(item) : integer
 * performs bulk calculations (as suggested in the ticket)
 * getTotalCapacity(item) : integer
 * getRemainingCapacity(item) : integer