Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 //--------------------------------------------------------
 // inherented by children-
 protected virtual void onEnter(/*in*/ TBTWorkingData wData)
 {
     TLogger.PROFILE("Enter Node" + this.ToString());
 }
Ejemplo n.º 3
0
 protected virtual int onExecute(TBTWorkingData wData)
 {
     TLogger.DEBUG("Excute Node" + this.ToString());
     return(TBTRunningStatus.FINISHED);
 }
Ejemplo n.º 4
0
 protected virtual void onExit(TBTWorkingData wData, int runningStatus)
 {
     TLogger.PROFILE("Exit Node" + this.ToString());
 }