| Trees | Indices | Help |
|---|
|
|
object --+
|
objects.base.BaseObject --+
|
objects.base.DynamicObject --+
|
object --+ |
| |
objects.base.BaseObject --+ |
| |
objects.base.Scriptable --+
|
objects.base.Container --+
|
Inventory
The class to represent inventory 'model': allow operations with inventory contents, perform weight/bulk calculations, etc
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
weight = property(getWeight, setWeightDummy, "Total weight of
|
|||
|
|||
|
Inherited from |
|||
|
|||
Initialise instance
|
Adds the provided carryable item to the inventory. Runs an 'onStoreItem' script, if present
|
Takes the listed item out of the inventory. Runs an 'onTakeItem' script
|
Removes an item from the container, basically the same as 'takeItem' but does run a different script. This should be used when an item is destroyed rather than moved out. Runs 'onRemoveItem' script
|
Replaces the old item with the new one
|
Returns the number of items
|
Returns the item with the passed ID
|
Find an item in inventory by various attributes. All parameters are optional.
|
repr(x)
|
Returns state for saving
|
|
|||
weight
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 14 05:00:11 2011 | http://epydoc.sourceforge.net |