pandemonium_engine/modules/steering_ai/doc_classes/GSAIBlend.xml

57 lines
1.8 KiB
XML
Raw Normal View History

2023-01-14 13:38:58 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GSAIBlend" inherits="GSAISteeringBehavior" version="3.11">
<brief_description>
Blends multiple steering behaviors into one, and returns a weighted acceleration from their calculations.
2023-01-14 13:38:58 +01:00
</brief_description>
<description>
Blends multiple steering behaviors into one, and returns a weighted acceleration from their calculations.
2023-01-14 13:38:58 +01:00
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_behavior">
<return type="void" />
<argument index="0" name="behavior" type="GSAISteeringBehavior" />
<argument index="1" name="weight" type="float" />
<description>
Appends a behavior to the internal array along with its weight.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="get_accel">
<return type="GSAITargetAcceleration" />
<description>
Returns the internal GSAITargetAcceleration.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="get_behavior">
<return type="GSAISteeringBehavior" />
<argument index="0" name="index" type="int" />
<description>
Returns the behavior at the specified index, or null if none was found.
</description>
</method>
<method name="get_behavior_weight">
<return type="float" />
<argument index="0" name="index" type="int" />
<description>
Returns the behavior's weight at the specified index, or null if none was found.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="get_behaviour_count">
<return type="int" />
<description>
Returns how many behaviors are added.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="remove_behavior">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
Removed the behavior at the specified index.
2023-01-14 13:38:58 +01:00
</description>
</method>
</methods>
<constants>
</constants>
</class>