Example #1
0
 public void insertRightAt(BinaryNode position)
 {
     position.right = new BinaryNode();
 }
Example #2
0
 public void setNode(BinaryNode here, Player data)
 {
     here = new BinaryNode(data);
     ++numOfElements;
 }
Example #3
0
 public void insertLeftAt(BinaryNode position)
 {
     position.left = new BinaryNode();
 }
Example #4
0
 public BinaryTree()
 {
     root          = null;
     numOfElements = 0;
     holder        = new Queue <BinaryNode>();
 }
Example #5
0
 public void replaceNode(Player el, BinaryNode left, BinaryNode right)
 {
     key        = el;
     this.left  = left;
     this.right = right;
 }
Example #6
0
 public void ReplaceNode(Player el)
 {
     key  = el;
     left = right = null;
 }
Example #7
0
 public BinaryNode(Player el)
 {
     key  = el;
     left = right = null;
 }
Example #8
0
 public BinaryNode()
 {
     left = right = null;
 }