protected void addExplosionInfo(int rank,int file,int fromSquare,List<AtomicExplosionInfo> explosionInfo){
  if (GameUtils.isInBounds(rank,file)) {
    int square=GameUtils.getSquare(rank,file);
    if (square != fromSquare && board[square] != EMPTY && board[square] != PAWN) {
      AtomicExplosionInfo info=new AtomicExplosionInfo();
      info.color=(getColorBB(WHITE) & getBitboard(square)) != 0 ? WHITE : BLACK;
      info.piece=board[square];
      info.square=square;
      explosionInfo.add(info);
    }
  }
}

protected void addExplosionInfo ( int rank , int file , int fromSquare , List < AtomicExplosionInfo > explosionInfo ) { if ( GameUtils . isInBounds ( rank , file ) ) { int square = GameUtils . getSquare ( rank , file ) ; if ( square != fromSquare && board [ square ] != EMPTY && board [ square ] != PAWN ) { AtomicExplosionInfo info = new AtomicExplosionInfo ( ) ; info . color = ( getColorBB ( WHITE ) & getBitboard ( square ) ) != 0 ? WHITE : BLACK ; info . piece = board [ square ] ; info . square = square ; explosionInfo . add ( info ) ; } } }
adds the explosion info for a candidate square if its a valid square and contains a piece other than a pawn .
