1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 23:37:20 +08:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.6 KiB
C#
Raw Normal View History

// 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 18:19:50 +09:00
using osu.Game.Rulesets.Judgements;
2019-09-06 15:24:00 +09:00
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.Taiko.Judgements;
2017-04-18 16:05:58 +09:00
namespace osu.Game.Rulesets.Taiko.Objects
2017-03-17 13:56:14 +09:00
{
2020-12-14 21:46:02 +01:00
public class DrumRollTick : TaikoStrongableHitObject
2017-03-17 13:56:14 +09:00
{
public readonly DrumRoll Parent;
2017-03-17 13:56:14 +09:00
/// <summary>
/// Whether this is the first (initial) tick of the slider.
/// </summary>
public bool FirstTick;
2018-04-13 18:19:50 +09:00
2017-03-17 13:56:14 +09:00
/// <summary>
/// The length (in milliseconds) between this tick and the next.
2017-03-17 13:56:14 +09:00
/// <para>Half of this value is the hit window of the tick.</para>
/// </summary>
public double TickSpacing;
2018-04-13 18:19:50 +09:00
/// <summary>
/// The time allowed to hit this tick.
/// </summary>
public double HitWindow => TickSpacing / 2;
public DrumRollTick(DrumRoll parent)
{
Parent = parent;
}
2018-08-06 11:50:18 +09:00
public override Judgement CreateJudgement() => new TaikoDrumRollTickJudgement();
2019-10-09 19:08:31 +09:00
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
2020-12-13 12:59:46 +01:00
public override double MaximumJudgementOffset => HitWindow;
2023-05-23 19:07:54 +09:00
protected override StrongNestedHitObject CreateStrongNestedHit(double startTime) => new StrongNestedHit(this)
{
StartTime = startTime,
Samples = Samples
};
2020-12-13 12:59:46 +01:00
public class StrongNestedHit : StrongNestedHitObject
{
2023-05-09 19:30:54 +09:00
public StrongNestedHit(TaikoHitObject parent)
: base(parent)
{
}
2020-12-13 12:59:46 +01:00
}
2017-03-17 13:56:14 +09:00
}
2018-01-05 20:21:19 +09:00
}