Esempio n. 1
0
 protected CancellableGameCounterBase(IPointCounter initialPointCounter, EnumTeams initialServiceRight)
 {
     GameCountA          = GameCountB = 0;
     CurrentPointCounter = initialPointCounter ?? throw new ArgumentNullException(nameof(initialPointCounter));
     History             = new Stack <GameCounterHistoryItem>();
     CurrentServiceRight = initialServiceRight;
     PushHistory(new GameCounterHistoryItem(initialPointCounter, new TeamedValuePair <int>(0, 0), initialServiceRight));
 }
Esempio n. 2
0
 public void Deconstruct(out IPointCounter pointCounter, out TeamedValuePair <int> gameCounts, out EnumTeams serviceRight)
 {
     pointCounter = Counter;
     gameCounts   = GameCounts;
     serviceRight = ServiceRight;
 }
Esempio n. 3
0
 public MatchTieBreakFinalSetGameCounter(IPointCounter initialPointCounter, EnumTeams initialServiceRight) : base(initialPointCounter, initialServiceRight)
 {
 }
Esempio n. 4
0
 public GameCounterHistoryItem(IPointCounter counter, TeamedValuePair <int> gameCounts, EnumTeams serviceRight)
 {
     Counter      = counter;
     GameCounts   = gameCounts;
     ServiceRight = serviceRight;
 }
Esempio n. 5
0
 public IParametricFactory <MatchTieBreakFinalSetGameCounter, EnumTeams> CreateFactory(IPointCounter initialPointCounter) =>
 Extensions.CreateParametricFactory <MatchTieBreakFinalSetGameCounter, EnumTeams>(isr => new MatchTieBreakFinalSetGameCounter(initialPointCounter, isr));