|
Britbot
|
this determines the huristic function used for the A* algorithm based on the EuclidianHuristic constant in Node
Definition at line 234 of file Node.cs. {
//if we chose euclidian huristic
if (Magic.EuclidianHuristic)
return Bot.Game.EuclidianDistanceSquared(loc1, loc2);
// Manhatten huristic
return Bot.Game.Distance(loc1, loc2);
}
|
1.7.6.1