Class BoidRuleFight


  • public class BoidRuleFight
    extends CFacade
    Generated facet for DNA struct type 'BoidRuleFight'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct BoidRuleFight.

        It is required when allocating a new block to store data for BoidRuleFight.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__rule

        public static final long[] __DNA__FIELD__rule
        Field descriptor (offset) for struct member 'rule'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoidRuleFight boidrulefight = ...;
         CPointer<Object> p = boidrulefight.__dna__addressof(BoidRuleFight.__DNA__FIELD__rule);
         CPointer<BoidRule> p_rule = p.cast(new Class[]{BoidRule.class});
         

        Metadata

        • Field: 'rule'
        • Signature: 'BoidRule'
        • Actual Size (32bit/64bit): 48/56
      • __DNA__FIELD__distance

        public static final long[] __DNA__FIELD__distance
        Field descriptor (offset) for struct member 'distance'.

        Field Documentation

        Blender Python API

        Attack boids at max this distance

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoidRuleFight boidrulefight = ...;
         CPointer<Object> p = boidrulefight.__dna__addressof(BoidRuleFight.__DNA__FIELD__distance);
         CPointer<Float> p_distance = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'distance'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flee_distance

        public static final long[] __DNA__FIELD__flee_distance
        Field descriptor (offset) for struct member 'flee_distance'.

        Field Documentation

        Blender Python API

        Flee to this distance

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoidRuleFight boidrulefight = ...;
         CPointer<Object> p = boidrulefight.__dna__addressof(BoidRuleFight.__DNA__FIELD__flee_distance);
         CPointer<Float> p_flee_distance = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'flee_distance'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • BoidRuleFight

        public BoidRuleFight​(long __address,
                             Block __block,
                             BlockTable __blockTable)
    • Method Detail

      • getRule

        public BoidRule getRule()
                         throws java.io.IOException
        Get method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • setRule

        public void setRule​(BoidRule rule)
                     throws java.io.IOException
        Set method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • getDistance

        public float getDistance()
                          throws java.io.IOException
        Get method for struct member 'distance'.

        Field Documentation

        Blender Python API

        Attack boids at max this distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance
      • setDistance

        public void setDistance​(float distance)
                         throws java.io.IOException
        Set method for struct member 'distance'.

        Field Documentation

        Blender Python API

        Attack boids at max this distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance
      • getFlee_distance

        public float getFlee_distance()
                               throws java.io.IOException
        Get method for struct member 'flee_distance'.

        Field Documentation

        Blender Python API

        Flee to this distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flee_distance
      • setFlee_distance

        public void setFlee_distance​(float flee_distance)
                              throws java.io.IOException
        Set method for struct member 'flee_distance'.

        Field Documentation

        Blender Python API

        Flee to this distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flee_distance
      • __io__addressof

        public CPointer<BoidRuleFight> __io__addressof()
        Instantiates a pointer on this instance.