Package org.blender.dna
Class BoidRuleFight
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.BoidRuleFight
-
public class BoidRuleFight extends CFacade
Generated facet for DNA struct type 'BoidRuleFight'.Class Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__distance
Field descriptor (offset) for struct member 'distance'.static long[]
__DNA__FIELD__flee_distance
Field descriptor (offset) for struct member 'flee_distance'.static long[]
__DNA__FIELD__rule
Field descriptor (offset) for struct member 'rule'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct BoidRuleFight.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description BoidRuleFight(long __address, Block __block, BlockTable __blockTable)
protected
BoidRuleFight(BoidRuleFight that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<BoidRuleFight>
__io__addressof()
Instantiates a pointer on this instance.float
getDistance()
Get method for struct member 'distance'.float
getFlee_distance()
Get method for struct member 'flee_distance'.BoidRule
getRule()
Get method for struct member 'rule'.void
setDistance(float distance)
Set method for struct member 'distance'.void
setFlee_distance(float flee_distance)
Set method for struct member 'flee_distance'.void
setRule(BoidRule rule)
Set method for struct member 'rule'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
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 distancePointer 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 distancePointer 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)
-
BoidRuleFight
protected BoidRuleFight(BoidRuleFight that)
-
-
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.
-
-