EditorPlayStateHelpers
| Kind | class |
| Package | editors.helpers |
| Full name | editors.helpers.EditorPlayStateHelpers |
| Source | source/editors/helpers/EditorPlayStateHelpers.hx |
| Metadata | @:access(editors.EditorPlayState) @:access(backend.MusicBeatState) |
Public methods
generateSong
static function generateSong(state:EditorPlayState, startingPoint:Float = 0):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
startingPoint (optional) | Float | 0 |
endSong
static function endSong(state:EditorPlayState)
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
onKeyPress
static function onKeyPress(state:EditorPlayState, event:KeyboardEvent):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
event | KeyboardEvent | — |
sortHitNotes
static function sortHitNotes(a:Note, b:Note):Int
| Parameter | Type | Default |
|---|---|---|
a | Note | — |
b | Note | — |
onKeyRelease
static function onKeyRelease(state:EditorPlayState, event:KeyboardEvent):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
event | KeyboardEvent | — |
getKeyFromEvent
static function getKeyFromEvent(state:EditorPlayState, key:FlxKey):Int
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
key | FlxKey | — |
handleKeyInput
static function handleKeyInput(state:EditorPlayState):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
invalidateNote
static function invalidateNote(state:EditorPlayState, note:Note):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
note | Note | — |
destroyNotes
static function destroyNotes(state:EditorPlayState):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
cachePopUpScore
static function cachePopUpScore(state:EditorPlayState)
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
popUpScore
static function popUpScore(state:EditorPlayState, note:Note = null):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
note (optional) | Note | null |
generateStaticArrows
static function generateStaticArrows(state:EditorPlayState, player:Int):Void
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
player | Int | — |
spawnHoldSplashOnNote
static function spawnHoldSplashOnNote(state:EditorPlayState, note:Note, isDad:Bool = false)
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
note | Note | — |
isDad (optional) | Bool | false |
spawnHoldSplash
static function spawnHoldSplash(state:EditorPlayState, note:Note)
| Parameter | Type | Default |
|---|---|---|
state | EditorPlayState | — |
note | Note | — |
Internals
Private / internal members
| Method |
|---|
static function sortByTime(state:EditorPlayState, Obj1:Dynamic, Obj2:Dynamic):Int |