C# Class BehaviorTree.BehaviorTreeNode

节点基类
Mostra file Open project: meta-42/uEasyKit Class Usage Examples

Public Properties

Property Type Description
_invalidChildNodeIndex int
_maxChildNodeCount int

Protected Properties

Property Type Description
mActiveNodeCur BehaviorTreeNode
mActiveNodeLast BehaviorTreeNode
mChildren BehaviorTree.BehaviorTreeNode[]
mChildrenCount int
mCondition BehaviorTreeCondition
mParentNode BehaviorTreeNode

Public Methods

Method Description
AddChildNode ( BehaviorTreeNode rNode ) : BehaviorTreeNode
BehaviorTreeNode ( BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null ) : System.Collections
Evaluate ( System.Object rInput ) : bool
GetActiveNodeLast ( ) : BehaviorTreeNode
SetActiveNode ( BehaviorTreeNode rNode ) : void
SetExternalCondition ( BehaviorTreeCondition rCondition ) : BehaviorTreeNode
Transition ( System.Object rInput ) : void
Update ( System.Object rInput, System.Object rOutput ) : NodeRunningStatus

Protected Methods

Method Description
CheckIndexSafe ( int rIndex ) : bool
EvaluateInternal ( System.Object rInput ) : bool
SetParentNode ( BehaviorTreeNode rParentNode ) : void
TransitionInternal ( System.Object rInput ) : void
UpdateInternal ( System.Object rInput, System.Object rOutput ) : NodeRunningStatus

Method Details

AddChildNode() public method

public AddChildNode ( BehaviorTreeNode rNode ) : BehaviorTreeNode
rNode BehaviorTreeNode
return BehaviorTreeNode

BehaviorTreeNode() public method

public BehaviorTreeNode ( BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null ) : System.Collections
rParentNode BehaviorTreeNode
rCondition BehaviorTreeCondition
return System.Collections

CheckIndexSafe() protected method

protected CheckIndexSafe ( int rIndex ) : bool
rIndex int
return bool

Evaluate() public method

public Evaluate ( System.Object rInput ) : bool
rInput System.Object
return bool

EvaluateInternal() protected method

protected EvaluateInternal ( System.Object rInput ) : bool
rInput System.Object
return bool

GetActiveNodeLast() public method

public GetActiveNodeLast ( ) : BehaviorTreeNode
return BehaviorTreeNode

SetActiveNode() public method

public SetActiveNode ( BehaviorTreeNode rNode ) : void
rNode BehaviorTreeNode
return void

SetExternalCondition() public method

public SetExternalCondition ( BehaviorTreeCondition rCondition ) : BehaviorTreeNode
rCondition BehaviorTreeCondition
return BehaviorTreeNode

SetParentNode() protected method

protected SetParentNode ( BehaviorTreeNode rParentNode ) : void
rParentNode BehaviorTreeNode
return void

Transition() public method

public Transition ( System.Object rInput ) : void
rInput System.Object
return void

TransitionInternal() protected method

protected TransitionInternal ( System.Object rInput ) : void
rInput System.Object
return void

Update() public method

public Update ( System.Object rInput, System.Object rOutput ) : NodeRunningStatus
rInput System.Object
rOutput System.Object
return NodeRunningStatus

UpdateInternal() protected method

protected UpdateInternal ( System.Object rInput, System.Object rOutput ) : NodeRunningStatus
rInput System.Object
rOutput System.Object
return NodeRunningStatus

Property Details

_invalidChildNodeIndex public_oe static_oe property

public static int _invalidChildNodeIndex
return int

_maxChildNodeCount public_oe static_oe property

public static int _maxChildNodeCount
return int

mActiveNodeCur protected_oe property

protected BehaviorTreeNode,BehaviorTree mActiveNodeCur
return BehaviorTreeNode

mActiveNodeLast protected_oe property

protected BehaviorTreeNode,BehaviorTree mActiveNodeLast
return BehaviorTreeNode

mChildren protected_oe property

protected BehaviorTreeNode[],BehaviorTree mChildren
return BehaviorTree.BehaviorTreeNode[]

mChildrenCount protected_oe property

protected int mChildrenCount
return int

mCondition protected_oe property

protected BehaviorTreeCondition,BehaviorTree mCondition
return BehaviorTreeCondition

mParentNode protected_oe property

protected BehaviorTreeNode,BehaviorTree mParentNode
return BehaviorTreeNode