Exemplo n.º 1
0
 public static int EnemiesAroundTarget(WoWUnit target, int range)
 {
     return(UnfriendlyUnits.Count(u => u.Location.Distance(target.Location) <= range));
 }
Exemplo n.º 2
0
 public static int EnemiesInRange(int range)
 {
     return(UnfriendlyUnits.Count(u => u.Distance2DSqr <= range * range));
 }