skills

package
v0.0.0-...-491ee29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AimSkill

type AimSkill struct {
	*Skill
	// contains filtered or unexported fields
}

func NewAimSkill

func NewAimSkill(d *difficulty.Difficulty, withSliders bool) *AimSkill

type Flashlight

type Flashlight struct {
	*Skill
	// contains filtered or unexported fields
}

func NewFlashlightSkill

func NewFlashlightSkill(d *difficulty.Difficulty) *Flashlight

func (*Flashlight) DifficultyValue

func (s *Flashlight) DifficultyValue() float64

type Skill

type Skill struct {
	// The weight by which each strain value decays.
	DecayWeight float64

	// The length of each strain section.
	SectionLength float64

	// Number of sections which strain value will be reduced.
	ReducedSectionCount int

	// Multiplier applied to the section with the biggest strain.
	ReducedStrainBaseline float64

	// Final multiplier after calculations.
	DifficultyMultiplier float64

	// Delegate to calculate strain value of skill
	StrainValueOf func(obj *preprocessing.DifficultyObject) float64

	CalculateInitialStrain func(time float64, current *preprocessing.DifficultyObject) float64
	// contains filtered or unexported fields
}

func NewSkill

func NewSkill(d *difficulty.Difficulty) *Skill

func (*Skill) DifficultyValue

func (skill *Skill) DifficultyValue() float64

func (*Skill) GetCurrentStrainPeaks

func (skill *Skill) GetCurrentStrainPeaks() []float64

func (*Skill) Process

func (skill *Skill) Process(current *preprocessing.DifficultyObject)

Processes given DifficultyObject

type SpeedSkill

type SpeedSkill struct {
	*Skill
	// contains filtered or unexported fields
}

func NewSpeedSkill

func NewSpeedSkill(d *difficulty.Difficulty) *SpeedSkill

func (*SpeedSkill) RelevantNoteCount

func (s *SpeedSkill) RelevantNoteCount() (sum float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL