Class SlidableObject

A parsed slidable object.

Hierarchy

  • HitObject
    • SlidableObject

Implements

  • ISlidableObject
  • IHasCombo

Constructors

Properties

comboOffset: number = 0
isNewCombo: boolean = false
legacyLastTickOffset: number = 36

The last tick offset of slidable objects in osu!stable.

nodeSamples: HitSample[][] = []

The samples to be played when each node of the slidable object is hit. 0: The first node. 1: The first repeat. 2: The second repeat. ... n-1: The last repeat. n: The last node.

path: SliderPath = ...

The curve of a slidable object.

repeats: number = 0

The amount of times a slidable object repeats.

velocity: number = 1

Velocity of this slidable object.

BASE_SCORING_DISTANCE: number = 100

Scoring distance with a speed-adjusted beat length of 1 second (ie. the speed slider balls move through their track).

Accessors

  • get distance(): number
  • The positional length of a slidable object.

    Returns number

  • set distance(value): void
  • Parameters

    • value: number

    Returns void

  • get duration(): number
  • The duration of this slidable object.

    Returns number

  • get endTime(): number
  • The time at which the slidable object ends.

    Returns number

  • get spanDuration(): number
  • The duration of a single span of this slidable object.

    Returns number

  • get spans(): number
  • The amount of times the length of this slidable object spans.

    Returns number

  • set spans(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Parameters

    • controlPoints: ControlPointInfo
    • difficulty: BeatmapDifficultySection

    Returns void

  • Creates a copy of this parsed slider. Non-primitive properties will be copied via their own clone() method.

    Returns this

    A copied parsed slider.