Example #1
0
 public BtPreconditionNode GetFirst()
 {
     if (_first == null)
     {
         _first = GetChild <BtPreconditionNode>(0);
     }
     return(_first);
 }
Example #2
0
 public BtAction SetPrecondition(BtPreconditionNode precondition)
 {
     _precondition = precondition;
     return(this);
 }
Example #3
0
 public TbPreconditionNot(BtPreconditionNode lhs)
     : base(lhs)
 {
 }
Example #4
0
 public TbPreconditionBinary(BtPreconditionNode lhs, BtPreconditionNode rhs)
     : base(2)
 {
     AddChild(lhs);
     AddChild(rhs);
 }
Example #5
0
 public TbPreconditionUnary(BtPreconditionNode lhs)
     : base(1)
 {
     AddChild(lhs);
 }
Example #6
0
 public TbPreconditionXor(BtPreconditionNode lhs, BtPreconditionNode rhs)
     : base(lhs, rhs)
 {
 }