@Override
public synchronized void examineExistingBlocks(AbstractBlockPosition cameraPosition) {
for (AbstractBlock block : blocks)
{
LayerBlock layerBlock = (LayerBlock)block;
AbstractBlockPosition pos = block.getPosition();
if (layerBlock.getStatus() == AbstractBlock.BlockStatus.HIDDEN || layerBlock.getStatus() == AbstractBlock.BlockStatus.EMPTY) {
if (!pos.isInRange(cameraPosition,exitRange)) {
removeBlockFromPool(layerBlock);
}
}
}
}