Example #1
0
 public void ResetSecondThrow(AbstractThrow sThrow) //  Перезапис другого кидка останнього фрейму
 {
     lastFrame.ResetSecondThrow(sThrow);
     if (lastFrame.IsStrikeSecond())
     {
         frames[8].ResetScore(lastFrame.GetScoreSecond());
     }
 }
Example #2
0
        protected int score;                                  // Очки за фрейм

        public Frame(FirstThrow fThrow, AbstractThrow sThrow) // Конструктор
        {
            firstThrow = fThrow;

            if (!firstThrow.IsStrike())
            {
                secondThrow = sThrow;
                score       = firstThrow.GetScore() + secondThrow.GetScore();
            }
            else
            {
                score = firstThrow.GetScore();
            }
        }
Example #3
0
 public void SetThirdThrowLastFrame(int playerID, AbstractThrow tThrow) // Запис третього кидка останнього фрейму
 {
     players[playerID].SetThirdThrow(tThrow);
 }
Example #4
0
 public void ResetSecondThrowLastFrame(int playerID, AbstractThrow tThrow) // Перезапис другого кидка останнього фрейму
 {
     players[playerID].ResetSecondThrow(tThrow);
 }
Example #5
0
 public void SetThirdThrow(AbstractThrow tThrow) // Запис третього кидка останнього фрейму
 {
     lastFrame.SetThirdThrow(tThrow);
 }
Example #6
0
 public void ResetSecondThrow(AbstractThrow sThrow) // Перезапис другого кидка
 {
     secondThrow = sThrow;
     score      += secondThrow.GetScore();
 }
Example #7
0
        }                                               // Конструктор

        public void SetThirdThrow(AbstractThrow tThrow) // Запис третьго кидка
        {
            thirdThrow = tThrow;

            score += thirdThrow.GetScore();
        }
Example #8
0
        protected AbstractThrow thirdThrow; // Третій кидок

        public LastFrame(FirstThrow fThrow, AbstractThrow sThrow) : base(fThrow, sThrow)
        {
        }                                               // Конструктор