|
Britbot
|
Returns the minimal distance to enemy group uses the *SORTED* EnemyDistances list.
Definition at line 347 of file SmartIsland.cs. {
//if isn't empty
if (this.approachingEnemies.Count > 0)
return this.approachingEnemies[0].Key.MinimalSquaredDistanceTo(this.Loc);
//otherwise return the constant in MAGIC representing the best case scenario
return Magic.MaxCalculableDistance;
}
|
1.7.6.1