Class: OsuRuby::Beatmap::DifficultyProgress

Inherits:
Struct
  • Object
show all
Defined in:
(osu-ruby2 0.0.2) osu-ruby2/beatmap/data.rb

Overview

Three-pair tuple that is used for most of osu! difficulty related scaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#highObject

Returns the value of attribute high

Returns:

  • (Object)

    the current value of high

#lowObject

Returns the value of attribute low

Returns:

  • (Object)

    the current value of low

#midObject

Returns the value of attribute mid

Returns:

  • (Object)

    the current value of mid

Instance Method Details

#approach(value) ⇒ Numeric

retrieve the original_value on given difficulty_value

Parameters:

  • value (Numeric)

    reference value to compare with #low, #mid, and #high.

Returns:

  • (Numeric)

    projected priginal_value from given difficulty_value

See Also:

#intiialize(*args) ⇒ Object

create immutable tuple.

#obtain(value) ⇒ Numeric

retrieve the difficulty_value on given value (expected from 0 to 10, may go beyond limits)

Parameters:

  • value (Numeric)

    reference value to compare.

Returns:

  • (Numeric)

    projected difficulty_value.

See Also: