 | 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.CompositesAssembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntaxprotected bool DecideForFirstPossible(
IAgentData agentData,
int firstChildIdx,
int lastChildIdx,
ref int childIdx,
ref float childDecideValue,
ref IDecisionData childDecisionData
)
Protected Function DecideForFirstPossible (
agentData As IAgentData,
firstChildIdx As Integer,
lastChildIdx As Integer,
ByRef childIdx As Integer,
ByRef childDecideValue As Single,
ByRef childDecisionData As IDecisionData
) As Boolean
protected:
bool DecideForFirstPossible(
IAgentData^ agentData,
int firstChildIdx,
int lastChildIdx,
int% childIdx,
float% childDecideValue,
IDecisionData^% childDecisionData
)
member DecideForFirstPossible :
agentData : IAgentData *
firstChildIdx : int *
lastChildIdx : int *
childIdx : int byref *
childDecideValue : float32 byref *
childDecisionData : IDecisionData byref -> bool
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