public boolean isInSight(final Entity other){
  if (other != null) {
    if (other.getZone() == getZone()) {
      if ((Math.abs(other.getX() - x) <= 20) && (Math.abs(other.getY() - y) <= 15)) {
        return true;
      }
    }
  }
  return false;
}

public boolean isInSight ( final Entity other ) { if ( other != null ) { if ( other . getZone ( ) == getZone ( ) ) { if ( ( Math . abs ( other . getX ( ) - x ) <= 20 ) && ( Math . abs ( other . getY ( ) - y ) <= 15 ) ) { return true ; } } } return false ; }
check if the other entity is near enough to be in sight on the client screen .
