| Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Creates a new inventory.
|
Returns the number of items in an inventory.
|
Returns whether an inventory can create new items itself. The prerequistie is that item type is a serializable object. It
enables functions like
|
Returns the type of item an inventory holds.
|
Looks up an item in an inventory.
|
Looks up an item in an inventory, eventually falling back to default. The lookup order is: item of requested name, default item (if set),
any inventory item,
|
Returns item on given position in an inventory.
|
Finds position of an item in an inventory.
|
Calls a function on each item of an inventory, in order.
|
Finds an inventory item using user-specified predicate function.
|
Sets the default of an inventory. Item
|
Returns the name of the default item of an inventory.
|
Returns the default item of an inventory.
|
Notifies inventory an item was updated. This function makes sense primarily for non-object items, as object items can notify inventory via signals.
|
Notifies inventory item on given position was updated. This function makes sense primarily for non-object items, as object
items can implement
|
Assures an inventory is sorted. |
Forces an inventory to be unsorted. Item positions don't change, but future |
Inserts an item into an inventory. Item of the same name must not exist yet. If the inventory is sorted, item is inserted to keep order. If the inventory is unsorted, item is simply added to the end.
|
Inserts an item to an explicit position in an inventory. Item of the same name must not exist yet.
|
Deletes an item from an inventory.
|
Deletes an item on given position from an inventory.
|
Renames an inventory item. If an item of name
|
Creates a new item as a copy of existing one and inserts it to inventory. The newly created item can be called differently than
|
Creates a new
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Feb 11 04:01:00 2012 | http://epydoc.sourceforge.net |