示例#1
0
    // Processes scoring
    public void Bowl(int pinFall)
    {
        // Process bowl
        rolls.Add(pinFall);
        boxes.Add(pinFall);
        ball.Reset();

        // Pass animation trigger
        pinSetter.ProcessAction(ActionMaster.NextAction(boxes));

        // Fill scorecard
        totalScore = ScoreMaster.ScoreCumulative(rolls);
        scoreDisplay.FillRolls(rolls);
        scoreDisplay.FillFrames(totalScore);
        TotalScore();
    }