Exemple #1
0
 BehaviorTreeBuilder <T> endDecorator()
 {
     _currentNode = _parentNodeStack.Pop();
     return(this);
 }
Exemple #2
0
 /// <summary>
 /// adds a child to this Composite
 /// </summary>
 /// <param name="child">Child.</param>
 public void addChild(Behavior <T> child)
 {
     _children.Add(child);
 }
Exemple #3
0
 public BehaviorTreeBuilder <T> endComposite()
 {
     Assert.isTrue(_parentNodeStack.Peek() is Composite <T>, "attempting to end a composite but the top node is a decorator");
     _currentNode = _parentNodeStack.Pop();
     return(this);
 }