// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Taiko.Judgements; namespace osu.Game.Rulesets.Taiko.Objects { public class DrumRollTick : TaikoHitObject { /// /// Whether this is the first (initial) tick of the slider. /// public bool FirstTick; /// /// The length (in milliseconds) between this tick and the next. /// Half of this value is the hit window of the tick. /// public double TickSpacing; /// /// The time allowed to hit this tick. /// public double HitWindow => TickSpacing / 2; public TaikoDrumRollTickJudgement Judgement { get; private set; } public TaikoStrongHitJudgement StrongJudgement { get; private set; } protected override IEnumerable CreateJudgements() { yield return Judgement = new TaikoDrumRollTickJudgement(); if (IsStrong) yield return StrongJudgement = new TaikoStrongHitJudgement(); } } }