public int CompareTo(Node node) { int compare = Fcost.CompareTo(node.Fcost); if (compare == 0) { compare = Hcost.CompareTo(node.Hcost); } return(-compare); }
public int CompareTo(Tile other) { int compare = Fcost.CompareTo(other.Fcost); if (compare == 0) { compare = Hcost.CompareTo(other.Hcost); } return(-compare); }
public int CompareTo(Vector2IHeapable NodeToCompare) { var compare = Fcost.CompareTo(NodeToCompare.Fcost); if (compare == 0) { compare = Hcost.CompareTo(NodeToCompare.Hcost); } return(-compare); }
public int CompareTo(StarNode NodeToCompare) { int compare = Fcost.CompareTo(NodeToCompare.Fcost); if (compare == 0) { compare = Hcost.CompareTo(NodeToCompare.Hcost); } return(-compare); }