1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Rename UpdateJudgement -> OnNewJugement + rename judgement parameter.

This commit is contained in:
smoogipooo 2017-03-24 11:32:48 +09:00
parent 59ba497952
commit 2a6da0751d
5 changed files with 13 additions and 13 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Modes.Catch.Scoring
{
}
protected override void UpdateCalculations(CatchJudgement newJudgement)
protected override void OnNewJugement(CatchJudgement judgement)
{
}
}

View File

@ -19,7 +19,7 @@ namespace osu.Game.Modes.Mania.Scoring
{
}
protected override void UpdateCalculations(ManiaJudgement newJudgement)
protected override void OnNewJugement(ManiaJudgement judgement)
{
}
}

View File

@ -28,7 +28,7 @@ namespace osu.Game.Modes.Osu.Scoring
Accuracy.Value = 1;
}
protected override void UpdateCalculations(OsuJudgement judgement)
protected override void OnNewJugement(OsuJudgement judgement)
{
if (judgement != null)
{

View File

@ -179,21 +179,21 @@ namespace osu.Game.Modes.Taiko.Scoring
maxComboPortion = comboPortion;
}
protected override void UpdateCalculations(TaikoJudgement newJudgement)
protected override void OnNewJugement(TaikoJudgement judgement)
{
bool isTick = newJudgement is TaikoDrumRollTickJudgement;
bool isTick = judgement is TaikoDrumRollTickJudgement;
// Don't consider ticks as a type of hit that counts towards map completion
if (!isTick)
totalHits++;
// Apply score changes
if (newJudgement.Result == HitResult.Hit)
if (judgement.Result == HitResult.Hit)
{
double baseValue = newJudgement.ResultValueForScore;
double baseValue = judgement.ResultValueForScore;
// Add bonus points for hitting an accented hit object with the second key
if (newJudgement.SecondHit)
if (judgement.SecondHit)
baseValue += baseValue * accentedHitScale;
// Add score to portions
@ -212,7 +212,7 @@ namespace osu.Game.Modes.Taiko.Scoring
}
// Apply HP changes
switch (newJudgement.Result)
switch (judgement.Result)
{
case HitResult.Miss:
// Missing ticks shouldn't drop HP
@ -220,7 +220,7 @@ namespace osu.Game.Modes.Taiko.Scoring
Health.Value += hpIncreaseMiss;
break;
case HitResult.Hit:
switch (newJudgement.TaikoResult)
switch (judgement.TaikoResult)
{
case TaikoHitResult.Good:
Health.Value += hpIncreaseGood;

View File

@ -143,7 +143,7 @@ namespace osu.Game.Modes.Scoring
{
Judgements.Add(judgement);
UpdateCalculations(judgement);
OnNewJugement(judgement);
judgement.ComboAtHit = (ulong)Combo.Value;
@ -158,7 +158,7 @@ namespace osu.Game.Modes.Scoring
/// <summary>
/// Update any values that potentially need post-processing on a judgement change.
/// </summary>
/// <param name="newJudgement">A new Judgement that triggered this calculation. May be null.</param>
protected abstract void UpdateCalculations(TJudgement newJudgement);
/// <param name="judgement">The judgement that triggered this calculation.</param>
protected abstract void OnNewJugement(TJudgement judgement);
}
}