pp211112

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StarScalingFactor is a global stars multiplier
	StarScalingFactor float64 = 0.0675
	CurrentVersion    int     = 20211112
)

Variables

This section is empty.

Functions

func NewDifficultyCalculator

func NewDifficultyCalculator() api.IDifficultyCalculator

func NewPPCalculator

func NewPPCalculator() api.IPerformanceCalculator

Types

type DifficultyCalculator

type DifficultyCalculator struct{}

func (*DifficultyCalculator) CalculateSingle

func (diffCalc *DifficultyCalculator) CalculateSingle(objects []objects.IHitObject, diff *difficulty.Difficulty) api.Attributes

CalculateSingle calculates the final difficulty attributes of a map

func (*DifficultyCalculator) CalculateStep

func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject, diff *difficulty.Difficulty) []api.Attributes

CalculateStep calculates successive star ratings for every part of a beatmap

func (*DifficultyCalculator) CalculateStrainPeaks

func (diffCalc *DifficultyCalculator) CalculateStrainPeaks(objects []objects.IHitObject, diff *difficulty.Difficulty) api.StrainPeaks

func (*DifficultyCalculator) GetVersion

func (diffCalc *DifficultyCalculator) GetVersion() int

func (*DifficultyCalculator) GetVersionMessage

func (diffCalc *DifficultyCalculator) GetVersionMessage() string

type PPv2

type PPv2 struct {
	// contains filtered or unexported fields
}

PPv2 : structure to store ppv2 values

func (*PPv2) Calculate

func (pp *PPv2) Calculate(attribs api.Attributes, score api.PerfScore, diff *difficulty.Difficulty) api.PPv2Results

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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