@Override public boolean visit(Feature feature) { cloister = (Cloister) feature; Position pos = cloister.getTile().getPosition(); List<Tile> neigbouringTiles = game.getBoard().getAdjacentAndDiagonalTiles(pos); neigbouringTilesCount = neigbouringTiles.size(); if (lbCap != null) { collectLittleBuildings(cloister.getTile().getPosition()); for (Tile tile : neigbouringTiles) { collectLittleBuildings(tile.getPosition()); } } return true; }
@Override public Set<Position> getPositions() { return Collections.singleton(cloister.getTile().getPosition()); }