Exemplo n.º 1
0
        public TeamStats GetStat(Team team)
        {
            if (HomeTeam == team)
                return HomeStat;

            if (AwayTeam == team)
                return AwayStat;

            throw new Exception();
        }
Exemplo n.º 2
0
        public TeamStats GetOpositeStat(Team team)
        {
            if (HomeTeam == team)
                return AwayStat;

            if (AwayTeam == team)
                return HomeStat;

            return null;
        }
Exemplo n.º 3
0
        public Team GetOpositeTeam(Team team)
        {
            if (HomeTeam == team)
                return AwayTeam;

            if (AwayTeam == team)
                return HomeTeam;

            return null;
        }
Exemplo n.º 4
0
        public int GetOpositeGoal(Team team)
        {
            if (HomeTeam == team)
                return FTAG;

            if (AwayTeam == team)
                return FTHG;

            throw new Exception();
        }