Esempio n. 1
0
 public TennisSet(TennisMatch parent)
 {
     PartOf           = parent;
     Duration         = new TennisDuration();
     Games            = new List <TennisGame>();
     StartServer      = PartOf.GetNextServer() == PartOf.Contestant1 ? 1 : 2;
     Statistics       = new TennisStatistics(this);
     ScoreContestant1 = 0;
     ScoreContestant2 = 0;
 }
Esempio n. 2
0
 public TennisMatch()
 {
     LogLevel               = LogLevelEnum.Shots;
     Points                 = new List <TennisPoint>();
     Sets                   = new List <TennisSet>();
     Statistics             = new TennisStatistics(this);
     Duration               = new TennisDuration();
     BestOutOf              = 1;
     NumberGamesPerSet      = 6;
     DeuceSuddenDeath       = false;
     TieBreakAtSameScoreOf  = 3;
     TieBreakFinalSet       = true;
     TieBreakLength         = 7;
     FinalSetIsTiebreak     = false;
     FinalSetTieBreakLength = 10;
     Winner                 = 0;
     Status                 = MatchStatus.Created;
     ID          = Guid.NewGuid();
     Contestant1 = new TennisContestant();
     Contestant1.ContestantNr = 1;
     Contestant2 = new TennisContestant();
     Contestant2.ContestantNr = 2;
     NextContestantToServe    = Contestant2;
 }