//currently we assume we want to just add them to next unstarted day public virtual IEnumerable <ScheduleGame> SetupSeriesGames(PlayoffSeries series, int startingDay) { var newGames = series.CreateNeededGamesForSeries(); Scheduler.AddGamesToSchedule(Schedule, newGames.ToList <ScheduleGame>(), startingDay); return(newGames); }
public virtual void ProcessEndOfSeries(PlayoffSeries series) { var playoffConfig = (PlayoffCompetitionConfig)CompetitionConfig; var seriesRule = playoffConfig.GetActiveSeriesRules(Year).Where(s => s.Name.Equals(series.Name)).First(); ProcessEndOfSeriesTeam(seriesRule.WinnerGroupName, seriesRule.WinnerRankFrom, series.GetWinner()); ProcessEndOfSeriesTeam(seriesRule.LoserGroupName, seriesRule.LoserRankFrom, series.GetLoser()); }
public virtual void AddSeries(PlayoffSeries series) { if (Series == null) { Series = new List <PlayoffSeries>(); } Series.Add(series); }
public PlayoffGame(Competition competition, PlayoffSeries series, int gameNumber, int day, int year, Team homeTeam, CompetitionTeam homeCompetitionTeam, Team awayTeam, CompetitionTeam awayCompetitionTeam, int homeScore, int awayScore, bool complete, int currentPeriod, int currentTime, GameRules rules, bool processed) : base(competition, gameNumber, day, year, homeTeam, homeCompetitionTeam, awayTeam, awayCompetitionTeam, homeScore, awayScore, complete, currentPeriod, currentTime, rules, processed) { Series = series; }