PlayStateRating
| Kind | class |
| Package | play.helpers |
| Full name | play.helpers.PlayStateRating |
| Source | source/play/helpers/PlayStateRating.hx |
| Metadata | @:access(play.PlayState) @:access(backend.MusicBeatState) |
Public methods
cachePopUpScore
static function cachePopUpScore(state:PlayState)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
judgeNote
static function judgeNote(state:PlayState, note:Note = null, miss:Bool = false)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
note (optional) | Note | null |
miss (optional) | Bool | false |
popUpScore
static function popUpScore(state:PlayState, note:Note = null, miss:Bool = false):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
note (optional) | Note | null |
miss (optional) | Bool | false |
updateScore
static function updateScore(state:PlayState, miss:Bool = false)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
miss (optional) | Bool | false |
RecalculateRating
static function RecalculateRating(state:PlayState, badHit:Bool = false)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
badHit (optional) | Bool | false |
updateNps
static function updateNps(state:PlayState)
REFACTOR: NPS tracking block extracted from play.PlayState.update()
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
checkForAchievement
static function checkForAchievement(state:PlayState, achievesToCheck:Array<String> = null)
Only compiled when #if ACHIEVEMENTS_ALLOWED.
REFACTOR: achievement checking extracted from play.PlayState
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
achievesToCheck (optional) | Array<String> | null |
Internals
Private / internal members
| Method |
|---|
static function comparePopupTime(a:Popup, b:Popup):Int |