Skip to main content

PlayStateRating

Kindclass
Packageplay.helpers
Full nameplay.helpers.PlayStateRating
Sourcesource/play/helpers/PlayStateRating.hx
Metadata@:access(play.PlayState) @:access(backend.MusicBeatState)

Public methods​

cachePopUpScore​

static function cachePopUpScore(state:PlayState)
ParameterTypeDefault
statePlayState—

View source

judgeNote​

static function judgeNote(state:PlayState, note:Note = null, miss:Bool = false)
ParameterTypeDefault
statePlayState—
note (optional)Notenull
miss (optional)Boolfalse

View source

popUpScore​

static function popUpScore(state:PlayState, note:Note = null, miss:Bool = false):Void
ParameterTypeDefault
statePlayState—
note (optional)Notenull
miss (optional)Boolfalse

View source

updateScore​

static function updateScore(state:PlayState, miss:Bool = false)
ParameterTypeDefault
statePlayState—
miss (optional)Boolfalse

View source

RecalculateRating​

static function RecalculateRating(state:PlayState, badHit:Bool = false)
ParameterTypeDefault
statePlayState—
badHit (optional)Boolfalse

View source

updateNps​

static function updateNps(state:PlayState)

REFACTOR: NPS tracking block extracted from play.PlayState.update()

ParameterTypeDefault
statePlayState—

View source

checkForAchievement​

static function checkForAchievement(state:PlayState, achievesToCheck:Array<String> = null)

Only compiled when #if ACHIEVEMENTS_ALLOWED.

REFACTOR: achievement checking extracted from play.PlayState

ParameterTypeDefault
statePlayState—
achievesToCheck (optional)Array<String>null

View source

Internals​

Private / internal members
Method
static function comparePopupTime(a:Popup, b:Popup):Int