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