Skip to main content

FreeplayStateHelpers

Kindclass
Packagestates.helpers
Full namestates.helpers.FreeplayStateHelpers
Sourcesource/states/helpers/FreeplayStateHelpers.hx
Metadata@:access(states.FreeplayState)

Public methods​

regenerateSongs​

static function regenerateSongs(state:FreeplayState, start:String = '')
ParameterTypeDefault
stateFreeplayState—
start (optional)String''

View source

checkForSongsThatMatch​

static function checkForSongsThatMatch(state:FreeplayState, start:String = '')
ParameterTypeDefault
stateFreeplayState—
start (optional)String''

View source

addSong​

static function addSong(state:FreeplayState, songName:String, weekNum:Int, songCharacter:String, color:Int)
ParameterTypeDefault
stateFreeplayState—
songNameString—
weekNumInt—
songCharacterString—
colorInt—

View source

weekIsLocked​

static function weekIsLocked(state:FreeplayState, name:String):Bool
ParameterTypeDefault
stateFreeplayState—
nameString—

View source

regenList​

static function regenList(state:FreeplayState)
ParameterTypeDefault
stateFreeplayState—

View source

changeSelection​

static function changeSelection(state:FreeplayState, change:Int = 0, playSound:Bool = true)
ParameterTypeDefault
stateFreeplayState—
change (optional)Int0
playSound (optional)Booltrue

View source

changeDiff​

static function changeDiff(state:FreeplayState, change:Int = 0)
ParameterTypeDefault
stateFreeplayState—
change (optional)Int0

View source

positionHighscore​

static function positionHighscore(state:FreeplayState)
ParameterTypeDefault
stateFreeplayState—

View source

updateTexts​

static function updateTexts(state:FreeplayState, elapsed:Float = 0.0)
ParameterTypeDefault
stateFreeplayState—
elapsed (optional)Float0.0

View source

playSong​

static function playSong(state:FreeplayState)
ParameterTypeDefault
stateFreeplayState—

View source

songJsonPopup​

static function songJsonPopup(state:FreeplayState)
ParameterTypeDefault
stateFreeplayState—

View source

getVocalFromCharacter​

static function getVocalFromCharacter(state:FreeplayState, char:String)
ParameterTypeDefault
stateFreeplayState—
charString—

View source

destroyFreeplayVocals​

static function destroyFreeplayVocals()

View source