예제 #1
0
파일: ScoreProcessor.cs 프로젝트: Wieku/osu
        private static void applyResult(HitResult result, ref ScoringValues scoringValues)
        {
            if (!result.IsScorable())
            {
                return;
            }

            if (result.IsBonus())
            {
                scoringValues.BonusScore += result.IsHit() ? Judgement.ToNumericResult(result) : 0;
            }
            else
            {
                scoringValues.BaseScore += result.IsHit() ? Judgement.ToNumericResult(result) : 0;
            }

            if (result.IsBasic())
            {
                scoringValues.CountBasicHitObjects++;
            }
        }
예제 #2
0
 public void TestIsBonus(HitResult hitResult, bool expectedReturnValue)
 {
     Assert.AreEqual(expectedReturnValue, hitResult.IsBonus());
 }