Options
All
  • Public
  • Public/Protected
  • All
Menu

The base of difficulty calculators.

Hierarchy

Index

Constructors

  • Constructs a new instance of the calculator.

    Parameters

    • beatmap: <internal>.Beatmap

      The beatmap to calculate. This beatmap will be deep-cloned to prevent reference changes.

    Returns <internal>.DifficultyCalculator

Properties

Additional data that is used in performance calculation.

The calculated beatmap.

mods: <internal>.Mod[]

The modifications applied.

The difficulty objects of the beatmap.

The map statistics of the beatmap after modifications are applied.

strainPeaks: <internal>.StrainPeaks

The strain peaks of various calculated difficulties.

total: number

The total star rating of the beatmap.

Methods

  • Calculates the star rating of the specified beatmap.

    The beatmap is analyzed in chunks of sectionLength duration. For each chunk the highest hitobject strains are added to a list which is then collapsed into a weighted sum, much like scores are weighted on a user's profile.

    For subsequent chunks, the initial max strain is calculated by decaying the previous hitobject's strain until the beginning of the new chunk.

    Parameters

    Returns <internal>.DifficultyCalculator

    The current instance.

  • calculateAll(): void
  • Calculates every star rating of the beatmap and stores it in this instance.

    Returns void

  • calculateTotal(): void
  • Calculates the total star rating of the beatmap and stores it in this instance.

    Returns void

  • generateDifficultyHitObjects(): void
  • Generates difficulty hitobjects for this calculator.

    Returns void

  • toString(): string
  • Returns a string representative of the class.

    Returns string

Generated using TypeDoc