示例#1
0
 private boolean spawnBombB() {
   boolean bombPartsExist = false;
   try {
     Iterator i = enemies.iterator();
     while (i.hasNext()) {
       Enemy e = (Enemy) i.next();
       if (e.getClass().equals(EnemyTypes.Bomb.class)
           || (e.getClass().equals(EnemyTypes.Shrapnel.class))) {
         bombPartsExist = true;
         break;
       }
     }
   } catch (Exception e) {
   }
   return !bombPartsExist;
 }