Пример #1
0
        //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);
        }
Пример #2
0
        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());
        }
Пример #3
0
        public virtual void AddSeries(PlayoffSeries series)
        {
            if (Series == null)
            {
                Series = new List <PlayoffSeries>();
            }

            Series.Add(series);
        }
Пример #4
0
 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;
 }