pandemonium_engine/modules/steering_ai/doc_classes/GSAIPriority.xml

48 lines
1.6 KiB
XML
Raw Normal View History

2023-01-14 13:38:58 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-02-25 10:26:26 +01:00
<class name="GSAIPriority" inherits="GSAISteeringBehavior" version="4.3">
2023-01-14 13:38:58 +01:00
<brief_description>
Container for multiple behaviors that returns the result of the first child behavior with non-zero acceleration.
2023-01-14 13:38:58 +01:00
</brief_description>
<description>
Container for multiple behaviors that returns the result of the first child behavior with non-zero acceleration.
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" />
<description>
Appends a steering behavior as a child of this container.
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 position in the pool referred to by index, or null if no behavior 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 position in the pool referred to by index.
2023-01-14 13:38:58 +01:00
</description>
</method>
</methods>
<members>
<member name="zero_threshold" type="float" setter="set_zero_threshold" getter="get_zero_threshold" default="0.0">
If a behavior's acceleration is lower than this threshold, the container considers it has an acceleration of zero.
2023-01-14 13:38:58 +01:00
</member>
</members>
<constants>
</constants>
</class>