Constructor

@:value({ opponentSide : true, cpu : false, strumOffset : 0.25 })new(characters:Array<Character>, strumOffset:Float = 0.25, cpu:Bool = false, opponentSide:Bool = true, ?controls:Controls)

Variables

characters:Array<Character>

Array containing all of the characters "attached" to those strums.

@:value(null)controls:Controls = null

Controls assigned to this strumline.

@:value(false)cpu:Bool = false

Whenever this strumline is controlled by cpu or not.

@:value(null)data:ChartStrumLine = null

Chart JSON data assigned to this StrumLine (Codename format)

@:value(null)@:isVarghostTapping:Null<Bool> = null

Whenever Ghost Tapping is enabled.

notes:NoteGroup

Group of all of the notes in this strumline. Using forEach on this group will only loop through the first notes for performance reasons.

@:value(new FlxTypedSignal<NoteHitEvent>())onHit:FlxTypedSignal<NoteHitEvent ‑> Void> = new FlxTypedSignal<NoteHitEvent>()

Signal that triggers whenever a note is hit. Similar to onPlayerHit and onDadHit, except strumline specific. To add a listener, do strumLine.onHit.add(function(e:NoteHitEvent) {});

@:value(new FlxTypedSignal<NoteHitEvent>())onMiss:FlxTypedSignal<NoteHitEvent ‑> Void> = new FlxTypedSignal<NoteHitEvent>()

Signal that triggers whenever a note is missed. Similar to onPlayerMiss and onDadMiss, except strumline specific. To add a listener, do strumLine.onMiss.add(function(e:NoteHitEvent) {});

@:value(new FlxTypedSignal<NoteUpdateEvent>())onNoteUpdate:FlxTypedSignal<NoteUpdateEvent ‑> Void> = new FlxTypedSignal<NoteUpdateEvent>()

Signal that triggers whenever a note is being updated. Similar to onNoteUpdate, except strumline specific. To add a listener, do strumLine.onNoteUpdate.add(function(e:NoteUpdateEvent) {});

@:value(false)opponentSide:Bool = false

Whenever this strumline is from the opponent side or the player side.

Methods

inlineaddHealth(health:Float):Void

deleteNote(note:Note):Void

Deletes a note from this strumline.

Parameters:

note

Note to delete

generate(strumLine:ChartStrumLine):Void

@:value({ amount : 4 })generateStrums(amount:Int = 4):Void

updateNote(daNote:Note):Void