2016-11-19 15:19:26 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
2016-11-25 15:26:50 +08:00
|
|
|
|
using System.Diagnostics;
|
2016-11-19 15:19:26 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using osu.Game.Modes.Objects;
|
2016-11-25 15:26:50 +08:00
|
|
|
|
using osu.Game.Modes.Objects.Drawables;
|
2016-11-19 18:07:57 +08:00
|
|
|
|
using OpenTK;
|
2016-11-19 15:19:26 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes
|
|
|
|
|
{
|
|
|
|
|
public class HitJudgementResolver
|
|
|
|
|
{
|
2016-11-25 15:26:50 +08:00
|
|
|
|
public virtual void CheckJudgement(DrawableHitObject h, JudgementInfo info)
|
|
|
|
|
{
|
|
|
|
|
info.Result = HitResult.Hit300;
|
|
|
|
|
}
|
2016-11-19 15:19:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-25 15:26:50 +08:00
|
|
|
|
public class JudgementInfo
|
2016-11-19 15:19:26 +08:00
|
|
|
|
{
|
2016-11-25 15:26:50 +08:00
|
|
|
|
public bool UserTriggered;
|
|
|
|
|
public ComboResult Combo;
|
|
|
|
|
public HitResult Result;
|
|
|
|
|
public double TimeOffset;
|
2016-11-19 18:07:57 +08:00
|
|
|
|
public Vector2 PositionOffset;
|
2016-11-19 15:19:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-25 15:26:50 +08:00
|
|
|
|
public enum ComboResult
|
2016-11-19 15:19:26 +08:00
|
|
|
|
{
|
|
|
|
|
[Description(@"")]
|
|
|
|
|
None,
|
|
|
|
|
[Description(@"Good")]
|
|
|
|
|
Good,
|
|
|
|
|
[Description(@"Amazing")]
|
|
|
|
|
Perfect
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-25 15:26:50 +08:00
|
|
|
|
public enum HitResult
|
2016-11-19 15:19:26 +08:00
|
|
|
|
{
|
2016-11-25 15:26:50 +08:00
|
|
|
|
Ignore,
|
2016-11-19 15:19:26 +08:00
|
|
|
|
[Description(@"Miss")]
|
|
|
|
|
Miss,
|
|
|
|
|
[Description(@"50")]
|
|
|
|
|
Hit50,
|
|
|
|
|
[Description(@"100")]
|
|
|
|
|
Hit100,
|
|
|
|
|
[Description(@"300")]
|
|
|
|
|
Hit300,
|
|
|
|
|
[Description(@"500")]
|
|
|
|
|
Hit500
|
|
|
|
|
}
|
|
|
|
|
}
|