2023-01-14 13:38:58 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-04-26 17:32:25 +02:00
|
|
|
<class name="GSAIBlend" inherits="GSAISteeringBehavior" version="4.4">
|
2023-01-14 13:38:58 +01:00
|
|
|
<brief_description>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
Removed the behavior at the specified index.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|