/// Whether a <see cref="HitResult"/> affects the combo.
/// </summary>
publicstaticboolAffectsCombo(thisHitResultresult)
{
switch(result)
{
caseHitResult.Miss:
caseHitResult.Meh:
caseHitResult.Ok:
caseHitResult.Good:
caseHitResult.Great:
caseHitResult.Perfect:
caseHitResult.LargeTickHit:
caseHitResult.LargeTickMiss:
returntrue;
default:
returnfalse;
}
}
/// <summary>
/// Whether a <see cref="HitResult"/> should be counted as combo score.
/// </summary>
/// <remarks>
/// This is not the reciprocal of <see cref="AffectsCombo"/>, as <see cref="HitResult.SmallTickHit"/> and <see cref="HitResult.SmallTickMiss"/> do not affect combo
/// but are still considered as part of the accuracy (not bonus) portion of the score.
/// </remarks>
publicstaticboolIsBonus(thisHitResultresult)
{
switch(result)
{
caseHitResult.SmallBonus:
caseHitResult.LargeBonus:
returntrue;
default:
returnfalse;
}
}
/// <summary>
/// Whether a <see cref="HitResult"/> represents a successful hit.
/// </summary>
publicstaticboolIsHit(thisHitResultresult)
{
switch(result)
{
caseHitResult.None:
caseHitResult.Ignore:
caseHitResult.Miss:
caseHitResult.SmallTickMiss:
caseHitResult.LargeTickMiss:
returnfalse;
default:
returntrue;
}
}
/// <summary>
/// Whether a <see cref="HitResult"/> is scorable.