Esempio n. 1
0
 ///<summary>Creates a node at the input position and movement cost of 1</summary>
 public Node(Position position)
 {
     _postition = position;
     _parent = null;
     _movementCost = 1;
     _vistable = true;
 }
Esempio n. 2
0
 ///<summary>Creates a node at the input position and the inputed movement cost</summary>
 public Node(Position position, double movementCost)
 {
     _postition = position;
     _parent = null;
     _movementCost = movementCost;
     _vistable = true;
 }
Esempio n. 3
0
        public bool Equals(Position position)
        {
            if ((object)position == null)
            {
                return false;
            }

            return this == position;
        }