Checks if the floor is clear.

The floor is clear when there are no units other than the warrior.

@returns {boolean} Whether the floor is clear or not.
482020
function isFloorClear(floorMap) {
  const spaces = floorMap.reduce((acc, val) => acc.concat(val), []);
  const unitCount = spaces.filter(space => !!space.unit).length;
  return unitCount <= 1;
}
213784
protected boolean isLeaf() {

        for (int i = 0; i < entries.length; i++) {
            Entry entry = entries[i];
            if (entry.getChild() != null) {
                return false;
            }
        }

        return true;
    }
898004
public boolean isFull()
	{
		return !itemStack.isEmpty() && itemStack.getCount() == Math.min(itemStack.getMaxStackSize(), getSlotStackLimit());
	}
644650
public boolean hasSpecTopics() {
        if (getSpecTopics().size() > 0) {
            return true;
        }

        for (final Level childLevel : levels) {
            if (childLevel.hasSpecTopics()) {
                return true;
            }
        }

        return false;
    }
742972
public boolean isMatch() {
        if (totalKotsuKantsu != 4) {
            return false;
        }

        int tileNum = janto.getTile().getNumber();
        if (tileNum != 1 && tileNum != 9) {
            return false;
        }

        //刻子が全て一九牌か
        for (Kotsu kotsu : kotsuList) {
            tileNum = kotsu.getTile().getNumber();
            if (tileNum != 1 && tileNum != 9) {
                return false;
            }
        }

        //ここまできたら見つかっている
        return true;
    }
80228
function() {
            if (!this.mtx) return true;
            return this.mtx.a === 1 && this.mtx.b === 0 && this.mtx.c === 0 && this.mtx.d === 1 && this.mtx.e === 0 && this.mtx.f === 0;
        }
841479
protected boolean checkTileIndex (int tileIndex)
    {
        int tcount = getTileCount();
        if (tileIndex >= 0 && tileIndex < tcount) {
            return true;
        } else {
            log.warning("Requested invalid tile [tset=" + this + ", index=" + tileIndex + "].",
                        new Exception());
            return false;
        }
    }
739794
public boolean isEmpty() {
        for (String key : data.keySet()) {
            if (!TS_KEY.equals(key)) {
                return false;
            }
        }
        return true;
    }
1159501
@Override
    public boolean hasArtwork() {
        for (FTArtworkType at : FTArtworkType.values()) {
            // We're not countin the artwork, we're seeing if any exists, so quit when we find something
            if (hasArtwork(at) && !artwork.isEmpty()) {
                return true;
            }
        }
        return false;
    }
819410
function(attr) {
        if (!arguments.length) {
          return !_.isEmpty(this.changed);
        }
        return this.changed && _.has(this.changed, attr);
      }
489799
public boolean containsNaN() {
        for (int c = 0; c < this.size(); c++) {
            if (s.isNaN(this.getValue(c))) {
                return true;
            }
        }
        return false;
    }
610119
public boolean isAlwaysFalse() {
        if (shardingConditions.isEmpty()) {
            return false;
        }
        for (ShardingCondition each : shardingConditions) {
            if (!(each instanceof AlwaysFalseShardingCondition)) {
                return false;
            }
        }
        return true;
    }
435466
private boolean isRyanmen(Shuntsu shuntsu, Tile last) {
        //ラスト牌と判定したい順子のtypeが違う場合はfalse
        if (shuntsu.getTile().getType() != last.getType()) {
            return false;
        }

        int shuntsuNum = shuntsu.getTile().getNumber();
        int lastNum = last.getNumber();
        if (shuntsuNum == 2 && lastNum == 1) {
            return true;
        }

        if (shuntsuNum == 8 && lastNum == 9) {
            return true;
        }

        int i = shuntsuNum - lastNum;
        if (i == 1 || i == -1) {
            return true;
        }

        return false;
    }
618671
public boolean isSingle() {
    // assume simplified
    if ((positiveQueryList.size() == 1) && (negativeQueryList.size() == 0)) {
      return true;
    } else if ((positiveQueryList.size() == 0)
        && (negativeQueryList.size() == 1)) {
      return true;
    }
    return false;
  }
1179442
public boolean wasSkipped() {
        return getSteps().stream().filter(s -> s.getEndState() != StepEndState.SKIPPED).count() == 0;
    }
623689
function() {
        OpenLayers.Tile.prototype.clear.apply(this, arguments);
        var img = this.imgDiv;
        if (img) {
            var tile = this.getTile();
            if (tile.parentNode === this.layer.div) {
                this.layer.div.removeChild(tile);
            }
            this.setImgSrc();
            if (this.layerAlphaHack === true) {
                img.style.filter = "";
            }
            OpenLayers.Element.removeClass(img, "olImageLoadError");
        }
        this.canvasContext = null;
    }
426609
protected static boolean isFull() {
        if (Config.CACHE_SEEN_CLASSES_V) {
            for (int i = 0; i < CACHE.length; i++) {
                if (CACHE[i] == null) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }