Пример #1
0
            public PointTotal(Match m, bool home)
            {
                int me, other;

                if (m.IsSomeoneForfeit(home))
                {
                    me = 0;
                    other = 3;
                }
                else if (m.IsSomeoneForfeit(!home))
                {
                    me = 3;
                    other = 0;
                }
                else
                {
                    me   =m.GetGoals(home);
                    other=m.GetGoals(!home);
                }
                this.goalaverage = me - other;
                if(me > other)
                    this.points=3;
                else if(me==other)
                    this.points=1;
                else
                    this.points=0;
            }
 public TotalMock(Match m, bool home)
 {
     this.points = m.GetGoals(home) - m.GetGoals(!home);
 }