2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2018-08-02 15:09:04 +08:00
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
2019-09-06 14:24:00 +08:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2018-08-02 15:09:04 +08:00
|
|
|
|
using osu.Game.Rulesets.Taiko.Judgements;
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Objects
|
|
|
|
|
{
|
2020-12-15 04:46:02 +08:00
|
|
|
|
public class DrumRollTick : TaikoStrongableHitObject
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this is the first (initial) tick of the slider.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool FirstTick;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The length (in milliseconds) between this tick and the next.
|
|
|
|
|
/// <para>Half of this value is the hit window of the tick.</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double TickSpacing;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time allowed to hit this tick.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double HitWindow => TickSpacing / 2;
|
2018-08-02 15:09:04 +08:00
|
|
|
|
|
2018-08-06 10:50:18 +08:00
|
|
|
|
public override Judgement CreateJudgement() => new TaikoDrumRollTickJudgement();
|
2019-09-02 15:10:30 +08:00
|
|
|
|
|
2019-10-09 18:08:31 +08:00
|
|
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
2020-12-13 19:59:46 +08:00
|
|
|
|
|
2023-01-19 19:53:35 +08:00
|
|
|
|
public override double MaximumJudgementOffset => HitWindow;
|
|
|
|
|
|
2020-12-13 19:59:46 +08:00
|
|
|
|
protected override StrongNestedHitObject CreateStrongNestedHit(double startTime) => new StrongNestedHit { StartTime = startTime };
|
|
|
|
|
|
|
|
|
|
public class StrongNestedHit : StrongNestedHitObject
|
|
|
|
|
{
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|