Ejemplo n.º 1
0
        public ParallelNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
            : base(rParentNode, rCondition)
        {
            mFinishCondition = ParallelFinishCondition.OR;
            mChildrenStatus = new NodeRunningStatus[BehaviorTreeNode._maxChildNodeCount];

            for (int i = 0; i < BehaviorTreeNode._maxChildNodeCount; i++ )
            {
                mChildrenStatus[i] = NodeRunningStatus.Executing;
            }
        }
Ejemplo n.º 2
0
        public ParallelNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
            : base(rParentNode, rCondition)
        {
            mFinishCondition = ParallelFinishCondition.OR;
            mChildrenStatus  = new NodeRunningStatus[BehaviorTreeNode._maxChildNodeCount];

            for (int i = 0; i < BehaviorTreeNode._maxChildNodeCount; i++)
            {
                mChildrenStatus[i] = NodeRunningStatus.Executing;
            }
        }
Ejemplo n.º 3
0
 public BehaviorTreeNode SetExternalCondition(BehaviorTreeCondition rCondition)
 {
     if (mCondition != rCondition)
     {
         if (mCondition != null)
         {
             mCondition = null;
         }
         mCondition = rCondition;
     }
     return(this);
 }
Ejemplo n.º 4
0
        public BehaviorTreeNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
        {
            NodeName        = "UNNAMED";
            mChildrenCount  = 0;
            mActiveNodeCur  = null;
            mActiveNodeLast = null;
            mCondition      = null;
            mChildren       = new BehaviorTreeNode[_maxChildNodeCount];

            for (int i = 0; i < _maxChildNodeCount; i++)
            {
                mChildren[i] = null;
            }

            SetParentNode(rParentNode);
            SetExternalCondition(rCondition);
        }
Ejemplo n.º 5
0
        public BehaviorTreeNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
        {
            NodeName = "UNNAMED";
            mChildrenCount = 0;
            mActiveNodeCur = null;
            mActiveNodeLast = null;
            mCondition = null;
            mChildren = new BehaviorTreeNode[_maxChildNodeCount];

            for( int i=0; i < _maxChildNodeCount; i++ )
            {
                mChildren[i] = null;
            }

            SetParentNode(rParentNode);
            SetExternalCondition(rCondition);
        }
Ejemplo n.º 6
0
 public PriortySelectorNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
     mSelectIndexCur = mSelectIndexLast = BehaviorTreeNode._invalidChildNodeIndex;
 }
Ejemplo n.º 7
0
 public NonePrioritySelectorNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
 }
Ejemplo n.º 8
0
 public ConditionNot(BehaviorTreeCondition rOperand)
 {
     mOperand = rOperand;
 }
Ejemplo n.º 9
0
 public BehaviorTreeNode SetExternalCondition(BehaviorTreeCondition rCondition)
 {
     if (mCondition != rCondition)
     {
         if (mCondition != null) mCondition = null;
         mCondition = rCondition;
     }
     return this;
 }
 public NonePrioritySelectorNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
 }
Ejemplo n.º 11
0
 public ActionNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondtion = null)
     : base(rParentNode, rCondtion)
 {
     mActionStatus = NodeActionStaus.Ready;
     mNeedExit     = false;
 }
Ejemplo n.º 12
0
 public SequenceNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
     mNodeIndexCur = BehaviorTreeNode._invalidChildNodeIndex;
 }
Ejemplo n.º 13
0
 public ConditionXor(BehaviorTreeCondition rOperandL, BehaviorTreeCondition rOperandR)
 {
     mOperandL = rOperandL;
     mOperandR = rOperandR;
 }
Ejemplo n.º 14
0
 public ConditionNot(BehaviorTreeCondition rOperand)
 {
     mOperand = rOperand;
 }
Ejemplo n.º 15
0
 public SequenceNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
     mNodeIndexCur = BehaviorTreeNode._invalidChildNodeIndex;
 }
Ejemplo n.º 16
0
 public ActionNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondtion = null)
     : base(rParentNode, rCondtion)
 {
     mActionStatus = NodeActionStaus.Ready;
     mNeedExit = false;
 }
Ejemplo n.º 17
0
 public PriortySelectorNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
     : base(rParentNode, rCondition)
 {
     mSelectIndexCur = mSelectIndexLast = BehaviorTreeNode._invalidChildNodeIndex;
 }
Ejemplo n.º 18
0
 public LoopNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null, int rLoopCount = _infiniteLoop)
     : base(rParentNode, rCondition)
 {
     mLoopCount = rLoopCount;
     mCountCur  = 0;
 }
Ejemplo n.º 19
0
 public LoopNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null, int rLoopCount = _infiniteLoop)
     : base(rParentNode, rCondition)
 {
     mLoopCount = rLoopCount;
     mCountCur = 0;
 }
Ejemplo n.º 20
0
 public ConditionAnd(BehaviorTreeCondition rOperandL, BehaviorTreeCondition rOperandR)
 {
     mOperandL = rOperandL;
     mOperandR = rOperandR;
 }