Package parpg :: Package objects :: Module composed :: Class CarryableSingleItemContainer
[hide private]
[frames] | no frames]

Class CarryableSingleItemContainer

source code

         object --+                
                  |                
    base.BaseObject --+            
                      |            
     base.DynamicObject --+        
                          |        
         object --+       |        
                  |       |        
    base.BaseObject --+   |        
                      |   |        
        base.Scriptable --+        
                          |        
             base.Container --+    
                              |    
            SingleItemContainer --+
                                  |
         object --+               |
                  |               |
    base.BaseObject --+           |
                      |           |
     base.DynamicObject --+       |
                          |       |
         object --+       |       |
                  |       |       |
    base.BaseObject --+   |       |
                      |   |       |
        base.Scriptable --+       |
                          |       |
             base.Container --+   |
                              |   |
     object --+               |   |
              |               |   |
base.BaseObject --+           |   |
                  |           |   |
 base.DynamicObject --+       |   |
                      |       |   |
        base.GameObject --+   |   |
                          |   |   |
     object --+           |   |   |
              |           |   |   |
base.BaseObject --+       |   |   |
                  |       |   |   |
 base.DynamicObject --+   |   |   |
                      |   |   |   |
         base.Carryable --+   |   |
                          |   |   |
         object --+       |   |   |
                  |       |   |   |
    base.BaseObject --+   |   |   |
                      |   |   |   |
            base.Usable --+   |   |
                          |   |   |
              CarryableItem --+   |
                              |   |
             CarryableContainer --+
                                  |
                                 CarryableSingleItemContainer

Container that can only store a single item. This class can represent single-item inventory slots

Nested Classes [hide private]

Inherited from base.Container: ItemSelf, SlotBusy, TooBig

Instance Methods [hide private]
 
__init__(self, item_type, **kwargs)
Initialise minimalistic set of data
source code

Inherited from SingleItemContainer: placeItem

Inherited from CarryableContainer: __repr__, getBulk, getStateForSaving, getWeight, setBulk, setWeight

Inherited from base.Container: count, findItem, findItemByID, findItemByItemType, getContentsBulk, getItemAt, indexOf, removeItem, replaceItem, serializeItems, takeItem

Inherited from base.Container (private): _placeAtVacant

Inherited from CarryableItem: prepareStateForSaving

Inherited from base.GameObject (private): _getCoords, _setCoords

Inherited from base.Carryable: getInventoryThumbnail

Inherited from base.DynamicObject: __getstate__, __setstate__, restoreState

Inherited from base.Scriptable: runScript, setScript

Inherited from base.BaseObject: trueAttr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from CarryableContainer: bulk, weight

Inherited from base.GameObject: coords

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, item_type, **kwargs)
(Constructor)

source code 

Initialise minimalistic set of data

Parameters:
  • name - Object display name
  • name - Filename of image to use in inventory
Overrides: object.__init__
(inherited documentation)