public void recruitPlayers(int qbNeeds,int rbNeeds,int wrNeeds,int kNeeds,int olNeeds,int sNeeds,int cbNeeds,int f7Needs){
  int stars=teamPrestige / 20 + 1;
  int chance=20 - (teamPrestige - 20 * (teamPrestige / 20));
  for (int i=0; i < qbNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamQBs.add(new PlayerQB(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamQBs.add(new PlayerQB(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < kNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamKs.add(new PlayerK(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamKs.add(new PlayerK(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < rbNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamRBs.add(new PlayerRB(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamRBs.add(new PlayerRB(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < wrNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamWRs.add(new PlayerWR(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamWRs.add(new PlayerWR(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < olNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamOLs.add(new PlayerOL(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamOLs.add(new PlayerOL(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < cbNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamCBs.add(new PlayerCB(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamCBs.add(new PlayerCB(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < f7Needs; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamF7s.add(new PlayerF7(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamF7s.add(new PlayerF7(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  for (int i=0; i < sNeeds; ++i) {
    if (100 * Math.random() < 5 * chance) {
      teamSs.add(new PlayerS(league.getRandName(),(int)(4 * Math.random() + 1),stars - 1,this));
    }
 else {
      teamSs.add(new PlayerS(league.getRandName(),(int)(4 * Math.random() + 1),stars,this));
    }
  }
  sortPlayers();
}

public void recruitPlayers ( int qbNeeds , int rbNeeds , int wrNeeds , int kNeeds , int olNeeds , int sNeeds , int cbNeeds , int f7Needs ) { int stars = teamPrestige / 20 + 1 ; int chance = 20 - ( teamPrestige - 20 * ( teamPrestige / 20 ) ) ; for ( int i = 0 ; i < qbNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamQBs . add ( new PlayerQB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamQBs . add ( new PlayerQB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < kNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamKs . add ( new PlayerK ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamKs . add ( new PlayerK ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < rbNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamRBs . add ( new PlayerRB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamRBs . add ( new PlayerRB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < wrNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamWRs . add ( new PlayerWR ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamWRs . add ( new PlayerWR ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < olNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamOLs . add ( new PlayerOL ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamOLs . add ( new PlayerOL ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < cbNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamCBs . add ( new PlayerCB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamCBs . add ( new PlayerCB ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < f7Needs ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamF7s . add ( new PlayerF7 ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamF7s . add ( new PlayerF7 ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } for ( int i = 0 ; i < sNeeds ; ++ i ) { if ( 100 * Math . random ( ) < 5 * chance ) { teamSs . add ( new PlayerS ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars - 1 , this ) ) ; } else { teamSs . add ( new PlayerS ( league . getRandName ( ) , ( int ) ( 4 * Math . random ( ) + 1 ) , stars , this ) ) ; } } sortPlayers ( ) ; }
recruits the needed amount of players at each position . rating of each player based on team prestige . this is used when first creating a team .
