Esempio n. 1
0
 private static int F(QueueNode node)
 {
     return(node.PathCost + Math.Abs(node.Pos.X - GOAL));
 }
Esempio n. 2
0
        public override bool Equals(Object obj)
        {
            QueueNode other = (QueueNode)obj;

            return(Pos.X == other.Pos.X && Pos.Y == other.Pos.Y && PathCost == other.PathCost);
        }