Click or drag to resize
CompositeTTaskDataDecideForFirstPossible Method
Takes first task which wants to be active. Checks only a subset of the children from index 0 to passed lastChildIdx (exclusive).

Namespace: Slash.AI.BehaviorTrees.Implementations.Composites
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
protected bool DecideForFirstPossible(
	IAgentData agentData,
	int firstChildIdx,
	int lastChildIdx,
	ref int childIdx,
	ref float childDecideValue,
	ref IDecisionData childDecisionData
)

Parameters

agentData
Type: Slash.AI.BehaviorTrees.InterfacesIAgentData
Agent data.
firstChildIdx
Type: SystemInt32
First child index to check (inclusive).
lastChildIdx
Type: SystemInt32
Last child index to check (exclusive).
childIdx
Type: SystemInt32
Index of child which will be activated.
childDecideValue
Type: SystemSingle
Decide value of child which will be activated.
childDecisionData
Type: Slash.AI.BehaviorTrees.InterfacesIDecisionData
Decision data of child to be used in activate method.

Return Value

Type: Boolean
True if there's a child which wants to be activated, else false.
See Also