scripts :: objects :: doors :: ShantyDoor :: Class ShantyDoor
[hide private]
[frames] | no frames]

Class ShantyDoor

source code

         object --+                
                  |                
    base.BaseObject --+            
                      |            
     base.DynamicObject --+        
                          |        
            base.GameObject --+    
                              |    
     object --+               |    
              |               |    
base.BaseObject --+           |    
                  |           |    
 base.DynamicObject --+       |    
                      |       |    
     object --+       |       |    
              |       |       |    
base.BaseObject --+   |       |    
                  |   |       |    
    base.Scriptable --+       |    
                      |       |    
          base.Openable --+   |    
                          |   |    
              base.Lockable --+    
                              |    
             object --+       |    
                      |       |    
        base.BaseObject --+   |    
                          |   |    
            base.Scriptable --+    
                              |    
             object --+       |    
                      |       |    
        base.BaseObject --+   |    
                          |   |    
              base.Trapable --+    
                              |    
                  composed.Door --+
                                  |
                                 ShantyDoor

Instance Methods [hide private]
 
__init__(self, ID, name='Shanty Door', text='A door', gfx='shanty-door', target_map_name='my-map', target_x=0.0, target_y=0.0, **kwargs)
Set the basic values that are shared by all game objects.
source code

Inherited from composed.Door: getStateForSaving

Inherited from base.GameObject: __repr__

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

Inherited from base.Lockable: lock, open, unlock

Inherited from base.Openable: close

Inherited from base.DynamicObject: __getstate__, __setstate__, prepareStateForSaving, 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 base.GameObject: coords

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ID, name='Shanty Door', text='A door', gfx='shanty-door', target_map_name='my-map', target_x=0.0, target_y=0.0, **kwargs)
(Constructor)

source code 

Set the basic values that are shared by all game objects.

Parameters:
  • ID - Unique object identifier. Must be present.
  • gfx - Dictionary with graphics for the different contexts @type coords 2-item tuple
  • coords - Initial coordinates of the object.
  • map_id - Identifier of the map where the object is located
  • blocking - Whether the object blocks character movement
  • name - The display name of this object (e.g. 'Dirty crate')
  • text - A longer description of the item
  • desc - A long description of the item that is displayed when it is examined
Overrides: object.__init__
(inherited documentation)