|
Britbot
|
Gets the minimal number of turns for the group to reach the given location.
Definition at line 433 of file EnemyGroup.cs. {
double min = Bot.Game.GetCols() + Bot.Game.GetRows();
foreach (int pirate in EnemyPirates)
{
if (Bot.Game.Distance(location, this.GetLocation()) < min)
min = Bot.Game.EuclidianDistanceSquared(location, this.GetLocation());
}
return min;
}
|
1.7.6.1