@Override public void load(Entity unit,boolean checkFalse) throws IllegalArgumentException {
  if (!canLoad(unit)) {
    throw new IllegalArgumentException("Can not load " + unit.getShortName() + " into this squadron. ");
  }
  if (unit instanceof FighterSquadron) {
    fighters.addAll(((FighterSquadron)unit).fighters);
  }
 else {
    fighters.addElement(unit.getId());
  }
  if (game.getPhase() != Phase.PHASE_LOUNGE) {
    computeSquadronBombLoadout();
  }
 else {
    updateWeaponGroups();
    loadAllWeapons();
  }
  updateSkills();
}

@ Override public void load ( Entity unit , boolean checkFalse ) throws IllegalArgumentException { if ( ! canLoad ( unit ) ) { throw new IllegalArgumentException ( "Can not load " + unit . getShortName ( ) + " into this squadron. " ) ; } if ( unit instanceof FighterSquadron ) { fighters . addAll ( ( ( FighterSquadron ) unit ) . fighters ) ; } else { fighters . addElement ( unit . getId ( ) ) ; } if ( game . getPhase ( ) != Phase . PHASE_LOUNGE ) { computeSquadronBombLoadout ( ) ; } else { updateWeaponGroups ( ) ; loadAllWeapons ( ) ; } updateSkills ( ) ; }
load the given unit .
