private void qbInterception(Team offense){
  if (gamePoss) {
    HomeQBStats[3]++;
    HomeQBStats[1]++;
    homeTOs++;
  }
 else {
    AwayQBStats[3]++;
    AwayQBStats[1]++;
    awayTOs++;
  }
  gameEventLog+=getEventPrefix() + "TURNOVER!\n" + offense.abbr+ " QB "+ offense.getQB(0).name+ " was intercepted.";
  gameTime-=15 * Math.random();
  offense.getQB(0).statsInt++;
  if (!playingOT) {
    gameDown=1;
    gameYardsNeed=10;
    gamePoss=!gamePoss;
    gameYardLine=100 - gameYardLine;
  }
 else   resetForOT();
}

private void qbInterception ( Team offense ) { if ( gamePoss ) { HomeQBStats [ 3 ] ++ ; HomeQBStats [ 1 ] ++ ; homeTOs ++ ; } else { AwayQBStats [ 3 ] ++ ; AwayQBStats [ 1 ] ++ ; awayTOs ++ ; } gameEventLog += getEventPrefix ( ) + "TURNOVER!\n" + offense . abbr + " QB " + offense . getQB ( 0 ) . name + " was intercepted." ; gameTime -= 15 * Math . random ( ) ; offense . getQB ( 0 ) . statsInt ++ ; if ( ! playingOT ) { gameDown = 1 ; gameYardsNeed = 10 ; gamePoss = ! gamePoss ; gameYardLine = 100 - gameYardLine ; } else resetForOT ( ) ; }
perform an interception on the offense ' s qb . will turn the ball over and add the needed stats .
