예제 #1
0
 public LeagueYear(League league, int year, LeagueOptions options, PlayStatus playStatus)
 {
     League     = league;
     Year       = year;
     Options    = options;
     PlayStatus = playStatus;
 }
예제 #2
0
        public decimal GetProjectedFantasyPoints(LeagueOptions options, SystemWideValues systemWideValues, bool yearFinished, bool simpleProjections, IClock clock)
        {
            var currentGamesScore = PublisherGames.Sum(x => x.GetProjectedOrRealFantasyPoints(options.ScoringSystem, systemWideValues, simpleProjections, clock));
            var availableSlots    = GetAvailableSlots(options, yearFinished);
            var emptySlotsScore   = availableSlots * systemWideValues.AverageStandardGamePoints;

            return(currentGamesScore + emptySlotsScore);
        }
예제 #3
0
 public LeagueYear(League league, int year, LeagueOptions options, PlayStatus playStatus, IEnumerable <EligibilityOverride> eligibilityOverrides)
 {
     League                          = league;
     Year                            = year;
     Options                         = options;
     PlayStatus                      = playStatus;
     EligibilityOverrides            = eligibilityOverrides.ToList();
     _eligibilityOverridesDictionary = EligibilityOverrides.ToDictionary(x => x.MasterGame);
 }
예제 #4
0
        public int GetAvailableSlots(LeagueOptions options, bool yearFinished)
        {
            if (yearFinished)
            {
                return(0);
            }

            return(options.StandardGames - PublisherGames.Count(x => !x.CounterPick));
        }