2017-03-15 20:32:47 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
2017-03-15 17:55:38 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Judgements
|
2017-03-15 17:55:38 +08:00
|
|
|
|
{
|
2017-03-23 18:00:18 +08:00
|
|
|
|
public class TaikoJudgement : Judgement
|
2017-03-15 17:55:38 +08:00
|
|
|
|
{
|
2017-09-12 23:33:01 +08:00
|
|
|
|
public override HitResult MaxResult => HitResult.Great;
|
|
|
|
|
|
2017-03-17 16:06:34 +08:00
|
|
|
|
/// <summary>
|
2017-03-24 08:50:18 +08:00
|
|
|
|
/// Computes the numeric result value for the combo portion of the score.
|
2017-03-17 16:06:34 +08:00
|
|
|
|
/// </summary>
|
2017-03-24 08:50:18 +08:00
|
|
|
|
/// <param name="result">The result to compute the value for.</param>
|
|
|
|
|
/// <returns>The numeric result value.</returns>
|
2017-09-05 18:44:59 +08:00
|
|
|
|
protected override int NumericResultFor(HitResult result)
|
2017-03-17 16:06:34 +08:00
|
|
|
|
{
|
|
|
|
|
switch (result)
|
|
|
|
|
{
|
|
|
|
|
default:
|
|
|
|
|
return 0;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Good:
|
2017-03-17 16:06:34 +08:00
|
|
|
|
return 100;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Great:
|
2017-03-17 16:06:34 +08:00
|
|
|
|
return 300;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-15 17:55:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|