Пример #1
0
        private List<RosterPosition> GenerateRosterSpotsFromSeason(FantasySeason season)
        {
            List<RosterPosition> allSpots = new List<RosterPosition>();

            for (int i = 0; i < season.NumQB; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.QB)); }

            for (int i = 0; i < season.NumRB; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.RB)); }

            for (int i = 0; i < season.NumWR; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.WR)); }

            for (int i = 0; i < season.NumTE; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.TE)); }

            for (int i = 0; i < season.NumK; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.K)); }

            for (int i = 0; i < season.NumFX; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.FX)); }

            for (int i = 0; i < season.NumDEF; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.DEF)); }

            for (int i = 0; i < season.NumBN; i++)
            { allSpots.Add(new RosterPosition(FantasyPosition.BN)); }

            return allSpots;
        }
Пример #2
0
 public FantasyTeam(string coachName, FantasySeason season, int draftOrder)
     : this(coachName, season)
 {
     DraftOrder = draftOrder;
 }
Пример #3
0
 public FantasyTeam(string coachName, FantasySeason season)
 {
     FantasyCoach = new FantasyCoach(coachName);
     RosterSpots = GenerateRosterSpotsFromSeason(season);
 }