コード例 #1
0
  protected boolean checkObjectInRange(VisibleObject newObject) {
    // check if Z distance is greater than maxZvisibleDistance
    if (Math.abs(owner.getZ() - newObject.getZ()) > owner.getMaxZVisibleDistance()) {
      return false;
    }

    return MathUtil.isInRange(owner, newObject, owner.getVisibilityDistance());
  }
コード例 #2
0
ファイル: KnownList.java プロジェクト: opentree/aionj-hungary
  protected final boolean checkObjectInRange(VisibleObject owner, VisibleObject newObject) {
    // check if Z distance is greater than maxZvisibleDistance
    if (Math.abs(owner.getZ() - newObject.getZ()) > maxZvisibleDistance) return false;

    return MathUtil.isInRange(owner, newObject, visibilityDistance);
  }