Exemple #1
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();
            }
        }
Exemple #2
0
 public bool IsStrike() // Перевірка чи є перший кидок фрейму страйком
 {
     return(firstThrow.IsStrike());
 }