Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class ControllerLink
[hide private]
[frames] | no frames]

Class ControllerLink

source code

                  object --+                
                           |                
      utils.graph.DetailNode --+            
                               |            
          utils.graph.GlobalNode --+        
                                   |        
object_models.xml.struct_.StructBase --+    
                                       |    
               NifFormat._ControllerLink --+
                                           |
                                          NifFormat.ControllerLink

>>> from pyffi.formats.nif import NifFormat
>>> link = NifFormat.ControllerLink()
>>> link.node_name_offset
-1
>>> link.set_node_name("Bip01")
>>> link.node_name_offset
0
>>> link.get_node_name()
'Bip01'
>>> link.node_name
'Bip01'
>>> link.set_node_name("Bip01 Tail")
>>> link.node_name_offset
6
>>> link.get_node_name()
'Bip01 Tail'
>>> link.node_name
'Bip01 Tail'
Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]
 
_get_string(self, offset)
A wrapper around string_palette.palette.get_string.
source code
 
_add_string(self, text)
Wrapper for string_palette.palette.add_string.
source code
 
get_node_name(self)
Return the node name.
source code
 
set_node_name(self, text) source code
 
get_property_type(self) source code
 
set_property_type(self, text) source code
 
get_controller_type(self) source code
 
set_controller_type(self, text) source code
 
get_variable_1(self) source code
 
set_variable_1(self, text) source code
 
get_variable_2(self) source code
 
set_variable_2(self, text) source code

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

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

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]

Inherited from _ControllerLink: controller, controller_type, controller_type_offset, interpolator, node_name, node_name_offset, priority, property_type, property_type_offset, string_palette, target_name, unknown_link_2, unknown_short_0, variable_1, variable_1_offset, variable_2, variable_2_offset

Inherited from object: __class__

Method Details [hide private]

_get_string(self, offset)

source code 
A wrapper around string_palette.palette.get_string. Used by get_node_name etc. Returns the string at given offset.

_add_string(self, text)

source code 
Wrapper for string_palette.palette.add_string. Used by set_node_name etc. Returns offset of string added.

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2c18510>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c18590>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c18650>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c186d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c18790>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c18810>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c18850>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c189d0>,
...