// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Taiko.Judgements { public class TaikoJudgement : Judgement { /// /// The result value for the accuracy portion of the score. /// public int ResultNumericForAccuracy => Result == HitResult.Miss ? 0 : NumericResultForAccuracy(Result); /// /// The maximum result value for the accuracy portion of the score. /// public int MaxResultValueForAccuracy => NumericResultForAccuracy(HitResult.Great); /// /// Computes the numeric result value for the combo portion of the score. /// For the accuracy portion of the score (including accuracy percentage), see . /// /// The result to compute the value for. /// The numeric result value. protected override int NumericResultFor(HitResult result) { switch (result) { default: return 0; case HitResult.Good: return 100; case HitResult.Great: return 300; } } /// /// Computes the numeric result value for the accuracy portion of the score. /// For the combo portion of the score, see . /// /// The result to compute the value for. /// The numeric result value. protected virtual int NumericResultForAccuracy(HitResult result) { switch (result) { default: return 0; case HitResult.Good: return 150; case HitResult.Great: return 300; } } } }