예제 #1
0
 //-------------------------------------------------------------------
 public TBTTreeNode AddChild(TBTTreeNode node)
 {
     if (_maxChildCount >= 0 && _children.Count >= _maxChildCount)
     {
         TLogger.WARNING("**BT** exceeding child count");
         return(this);
     }
     _children.Add(node);
     //node._parent = this;
     return(this);
 }
예제 #2
0
 //--------------------------------------------------------
 // inherented by children-
 protected virtual void onEnter(/*in*/ TBTWorkingData wData)
 {
     TLogger.PROFILE("Enter Node" + this.ToString());
 }
예제 #3
0
 protected virtual int onExecute(TBTWorkingData wData)
 {
     TLogger.DEBUG("Excute Node" + this.ToString());
     return(TBTRunningStatus.FINISHED);
 }
예제 #4
0
 protected virtual void onExit(TBTWorkingData wData, int runningStatus)
 {
     TLogger.PROFILE("Exit Node" + this.ToString());
 }