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 decimal GetProjectedOrRealFantasyPoints(ScoringSystem scoringSystem, SystemWideValues systemWideValues, bool simpleProjections, IClock clock) { if (MasterGame.HasNoValue) { return(systemWideValues.GetAveragePoints(CounterPick)); } decimal?fantasyPoints = CalculateFantasyPoints(scoringSystem, clock); if (fantasyPoints.HasValue) { return(fantasyPoints.Value); } if (simpleProjections) { return(MasterGame.Value.GetSimpleProjectedFantasyPoints(systemWideValues, CounterPick)); } return(MasterGame.Value.GetProjectedOrRealFantasyPoints(scoringSystem, CounterPick, clock)); }
public decimal GetSimpleProjectedFantasyPoints(SystemWideValues systemWideValues, bool counterPick) { return(systemWideValues.GetAveragePoints(counterPick)); }