コード例 #1
0
        public static StandingsParser GetStandingsParser(LeagueType league)
        {
            switch (league)
            {
            case LeagueType.AHL:
                return(new AHLStandingsParser());

            case LeagueType.VHL:
                return(new VHLStandingsParser());

            case LeagueType.MHL:
                return(new MHLStandingsParser());

            case LeagueType.WHL:
                return(new WHLStandingsParser());

            case LeagueType.OHL:
                return(new OHLStandingsParser());

            case LeagueType.QMJHL:
                return(new QMJHLStandingsParser());

            case LeagueType.SHL:
                return(new SHLStandingsParser());

            case LeagueType.Allsvenskan:
                return(new AllsvenskanStandingsParser());

            default:
                throw new Exception("No Standing Parser for " + league.ToString());
            }
        }
コード例 #2
0
 public LeagueSettings(LeagueType type, int matchCount, int roundDuration)
 {
     LeagueType    = type.ToString();
     MatchCount    = matchCount;
     RoundDuration = roundDuration;
 }
コード例 #3
0
 public int RoundDuration; // time in seconds between rounds of play
 public LeagueSettings(LeagueType type)
 {
     LeagueType = type.ToString();
 }