osu/osu.Game.Rulesets.Osu/Judgements/OsuJudgement.cs

38 lines
1.0 KiB
C#
Raw Normal View History

2018-01-05 11:21:19 +00:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-03-15 12:32:47 +00:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
2017-04-18 07:05:58 +00:00
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
2017-04-18 07:05:58 +00:00
namespace osu.Game.Rulesets.Osu.Judgements
{
public class OsuJudgement : Judgement
{
public override HitResult MaxResult => HitResult.Great;
/// <summary>
/// The positional hit offset.
/// </summary>
public Vector2 PositionOffset;
2017-09-05 10:44:59 +00:00
protected override int NumericResultFor(HitResult result)
{
switch (result)
{
default:
return 0;
2017-09-05 10:44:59 +00:00
case HitResult.Meh:
return 50;
2017-09-05 10:44:59 +00:00
case HitResult.Good:
return 100;
2017-09-05 10:44:59 +00:00
case HitResult.Great:
return 300;
}
}
public ComboResult Combo;
}
}