timeSpent -> TimeRequired

This commit is contained in:
C9Glax 2022-11-03 19:13:38 +01:00
parent b88e1a8dfc
commit 88ed5472a8

View File

@ -9,7 +9,7 @@
public Node? previousNode { get; set; }
public float goalDistance { get; set; }
public float timeSpent { get; set; }
public float timeRequired { get; set; }
public Node(float lat, float lon)
{
@ -18,7 +18,15 @@
this.edges = new();
this.previousNode = null;
this.goalDistance = float.MaxValue;
this.timeSpent = float.MaxValue;
this.timeRequired = float.MaxValue;
}
public Edge GetEdgeToNode(Node n)
{
foreach (Edge e in this.edges)
if (e.neighbor == n)
return e;
return null;
}
}
}