2023-01-14 13:38:58 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<class name="GSAIProximity" inherits="Reference" version="3.11">
|
|
|
|
<brief_description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Base container type that stores data to find the neighbors of an agent.
|
2023-01-14 13:38:58 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|
2023-01-14 14:31:39 +01:00
|
|
|
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">
|
2023-01-14 14:31:39 +01:00
|
|
|
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="[ ]">
|
2023-01-14 14:31:39 +01:00
|
|
|
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>
|