public virtual void Apply([NotNull] JudgementResult result, [CanBeNull] DrawableHitObject judgedObject) { Result = result; JudgedObject = judgedObject; }
/// <summary> /// Retrieves the numeric score representation of a <see cref="JudgementResult"/>. /// </summary> /// <param name="result">The <see cref="JudgementResult"/> to find the numeric score representation for.</param> /// <returns>The numeric score representation of <paramref name="result"/>.</returns> public int NumericResultFor(JudgementResult result) => ToNumericResult(result.Type);
/// <summary> /// Creates a drawable which visualises a <see cref="Judgements.Judgement"/>. /// </summary> /// <param name="result">The judgement to visualise.</param> /// <param name="judgedObject">The object which was judged.</param> public DrawableJudgement(JudgementResult result, DrawableHitObject judgedObject) : this() { Apply(result, judgedObject); }
/// <summary> /// Retrieves the numeric health increase of a <see cref="JudgementResult"/>. /// </summary> /// <param name="result">The <see cref="JudgementResult"/> to find the numeric health increase for.</param> /// <returns>The numeric health increase of <paramref name="result"/>.</returns> public double HealthIncreaseFor(JudgementResult result) => HealthIncreaseFor(result.Type);