1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Reorder classes for legibility, group into regions

This commit is contained in:
Bartłomiej Dach 2022-06-24 12:56:47 +02:00
parent 52de8bae9b
commit bcb9cba2d7
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -56,6 +56,13 @@ namespace osu.Game.Rulesets.Taiko.Mods
taikoBeatmap.HitObjects = hitObjects; taikoBeatmap.HitObjects = hitObjects;
} }
#region Classic drum roll
private class TaikoClassicDrumRollJudgement : TaikoDrumRollJudgement
{
public override HitResult MaxResult => HitResult.IgnoreHit;
}
private class ClassicDrumRoll : DrumRoll private class ClassicDrumRoll : DrumRoll
{ {
public ClassicDrumRoll(DrumRoll original) public ClassicDrumRoll(DrumRoll original)
@ -89,6 +96,11 @@ namespace osu.Game.Rulesets.Taiko.Mods
} }
} }
private class TaikoClassicDrumRollTickJudgement : TaikoDrumRollTickJudgement
{
public override HitResult MaxResult => HitResult.SmallBonus;
}
private class ClassicDrumRollTick : DrumRollTick private class ClassicDrumRollTick : DrumRollTick
{ {
public override Judgement CreateJudgement() => new TaikoClassicDrumRollTickJudgement(); public override Judgement CreateJudgement() => new TaikoClassicDrumRollTickJudgement();
@ -102,35 +114,6 @@ namespace osu.Game.Rulesets.Taiko.Mods
} }
} }
private class ClassicSwell : Swell
{
public ClassicSwell(Swell original)
{
StartTime = original.StartTime;
Samples = original.Samples;
EndTime = original.EndTime;
Duration = original.Duration;
RequiredHits = original.RequiredHits;
}
public override Judgement CreateJudgement() => new TaikoClassicSwellJudgement();
}
private class TaikoClassicDrumRollJudgement : TaikoDrumRollJudgement
{
public override HitResult MaxResult => HitResult.IgnoreHit;
}
private class TaikoClassicDrumRollTickJudgement : TaikoDrumRollTickJudgement
{
public override HitResult MaxResult => HitResult.SmallBonus;
}
private class TaikoClassicSwellJudgement : TaikoSwellJudgement
{
public override HitResult MaxResult => HitResult.LargeBonus;
}
private class ClassicDrawableDrumRoll : DrawableDrumRoll private class ClassicDrawableDrumRoll : DrawableDrumRoll
{ {
public override bool DisplayResult => false; public override bool DisplayResult => false;
@ -147,6 +130,29 @@ namespace osu.Game.Rulesets.Taiko.Mods
} }
} }
#endregion
#region Classic swell
private class TaikoClassicSwellJudgement : TaikoSwellJudgement
{
public override HitResult MaxResult => HitResult.LargeBonus;
}
private class ClassicSwell : Swell
{
public ClassicSwell(Swell original)
{
StartTime = original.StartTime;
Samples = original.Samples;
EndTime = original.EndTime;
Duration = original.Duration;
RequiredHits = original.RequiredHits;
}
public override Judgement CreateJudgement() => new TaikoClassicSwellJudgement();
}
private class ClassicDrawableSwell : DrawableSwell private class ClassicDrawableSwell : DrawableSwell
{ {
public override bool DisplayResult => false; public override bool DisplayResult => false;
@ -154,6 +160,8 @@ namespace osu.Game.Rulesets.Taiko.Mods
protected override HitResult OkResult => HitResult.SmallBonus; protected override HitResult OkResult => HitResult.SmallBonus;
} }
#endregion
public void Update(Playfield playfield) public void Update(Playfield playfield)
{ {
// Classic taiko scrolls at a constant 100px per 1000ms. More notes become visible as the playfield is lengthened. // Classic taiko scrolls at a constant 100px per 1000ms. More notes become visible as the playfield is lengthened.