public LeagueYear(League league, int year, LeagueOptions options, PlayStatus playStatus) { League = league; Year = year; Options = options; PlayStatus = playStatus; }
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); }
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); }
public int GetAvailableSlots(LeagueOptions options, bool yearFinished) { if (yearFinished) { return(0); } return(options.StandardGames - PublisherGames.Count(x => !x.CounterPick)); }