Ejemplo n.º 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);
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 3
0
        public virtual void AddSeries(PlayoffSeries series)
        {
            if (Series == null)
            {
                Series = new List <PlayoffSeries>();
            }

            Series.Add(series);
        }
Ejemplo n.º 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;
 }