public static int CalculateDistance( Mobile from, Mobile target ) { int distance = Math.Sqrt( Math.Pow( from.X - target.X, 2 ) + Math.Pow( from.Y - target.Y, 2 ) ); return distance; }