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