private float getBlockCost() { if (blockCost == -1) { blockCost = 0; for (BlockExaminer examiner : examiners) { blockCost += examiner.getCost(blockSource, this); } } return blockCost; }
private boolean isPassable(PathPoint mod) { for (BlockExaminer examiner : examiners) { boolean passable = examiner.isPassable(blockSource, mod); if (!passable) { return false; } } return true; }