pandemonium_engine/modules/steering_ai/doc_classes/GSAIProximity.xml

40 lines
1.5 KiB
XML
Raw Normal View History

2023-01-14 13:38:58 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-08-26 22:41:21 +02:00
<class name="GSAIProximity" inherits="Reference" version="4.1">
2023-01-14 13:38:58 +01:00
<brief_description>
Base container type that stores data to find the neighbors of an agent.
2023-01-14 13:38:58 +01:00
</brief_description>
<description>
Base container type that stores data to find the neighbors of an agent.
2023-01-14 13:38:58 +01:00
</description>
<tutorials>
</tutorials>
<methods>
<method name="_find_neighbors" qualifiers="virtual">
<return type="int" />
<argument index="0" name="callback" type="FuncRef" />
<description>
Returns a number of neighbors based on a `callback` function.
_find_neighbors calls callback for each agent in the agents array and adds one to the count if its callback returns true.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="find_neighbors">
<return type="int" />
<argument index="0" name="callback" type="FuncRef" />
<description>
Returns a number of neighbors based on a `callback` function.
_find_neighbors calls callback for each agent in the agents array and adds one to the count if its callback returns true.
2023-01-14 13:38:58 +01:00
</description>
</method>
</methods>
<members>
<member name="agent" type="GSAISteeringAgent" setter="set_agent" getter="get_agent">
The owning agent whose neighbors are found in the group
2023-01-14 13:38:58 +01:00
</member>
<member name="agents" type="Array" setter="set_agents" getter="get_agents" default="[ ]">
The agents who are part of this group and could be potential neighbors
2023-01-14 13:38:58 +01:00
</member>
</members>
<constants>
</constants>
</class>