示例#1
0
 public virtual void Apply([NotNull] JudgementResult result, [CanBeNull] DrawableHitObject judgedObject)
 {
     Result       = result;
     JudgedObject = judgedObject;
 }
示例#2
0
 /// <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);
示例#3
0
 /// <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);
 }
示例#4
0
 /// <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);