public bool IsPerfect(CNote CompareNote) { bool Result = true; if (!Hit) { Result = false; } if (StartBeat != CompareNote.StartBeat) { Result = false; } if (EndBeat != CompareNote.EndBeat) { Result = false; } if (Tone != CompareNote.Tone) { Result = false; } Perfect = Result; return(Result); }
public bool InsertNote(CNote Note, int Index) { if (_Notes.Count >= Index) { _Notes.Insert(Index, Note); updateMinMaxBeat(Note); return(true); } return(false); }
public CNote(CNote note) { _StartBeat = note._StartBeat; _Duration = note._Duration; _Tone = note._Tone; _NoteType = note._NoteType; _Text = note._Text; _Hit = note._Hit; _Perfect = note._Perfect; }
public bool InsertNote(CNote Note, int LineIndex, int NoteIndex) { if (_Lines.Count > LineIndex) { bool res = _Lines[LineIndex].InsertNote(Note, NoteIndex); UpdateTimings(); return(res); } return(false); }
public bool ReplaceNote(int Index, CNote Note) { if (_Notes.Count > Index) { _Notes.RemoveAt(Index); _Notes.Insert(Index, Note); updateMinMaxBeat(); return(true); } return(false); }
private void updateMinMaxBeat(CNote Note) { if (Note.StartBeat < _MinBeat) { _MinBeat = Note.StartBeat; } if (Note.EndBeat > _MaxBeat) { _MaxBeat = Note.EndBeat; } }
public bool AddNote(CNote Note, int LineIndex, bool updateTimings) { if (_Lines.Count > LineIndex) { _Lines[LineIndex].AddNote(Note); if (updateTimings) { UpdateTimings(); } return(true); } return(false); }
private void ParseNote(int Player, ENoteType NoteType, int Start, int Length, int Tone, string Text) { CNote note = new CNote(Start, Length, Tone, Text, NoteType); CLines lines = this.Notes.GetLines(Player); if (lines.LineCount == 0) { CLine line = new CLine(); line.AddNote(note); lines.AddLine(line, false); } else { lines.AddNote(note, lines.LineCount - 1, false); } }
public bool AddNote(CNote Note, int LineIndex, bool updateTimings) { if (_Lines.Count > LineIndex) { _Lines[LineIndex].AddNote(Note); if (updateTimings) { UpdateTimings(); } return true; } return false; }
private void ParseNote(int Player, ENoteType NoteType, int Start, int Length, int Tone, string Text) { CNote note = new CNote(Start, Length, Tone, Text, NoteType); CLines lines = this.Notes.GetLines(Player); if (lines.LineCount == 0) { CLine line = new CLine(); line.AddNote(note); lines.AddLine(line); } else { lines.AddNote(note, lines.LineCount - 1); } }
public bool AddNote(CNote Note, int LineIndex) { return(AddNote(Note, LineIndex, true)); }
public virtual void AddNote(int ID, CNote Note) { }
public void AddNote(CNote Note) { _Notes.Add(Note); updateMinMaxBeat(Note); }
public bool IsPerfect(CNote CompareNote) { bool Result = true; if (!Hit) Result = false; if (StartBeat != CompareNote.StartBeat) Result = false; if (EndBeat != CompareNote.EndBeat) Result = false; if (Tone != CompareNote.Tone) Result = false; Perfect = Result; return Result; }
public bool InsertNote(CNote Note, int LineIndex, int NoteIndex) { if (_Lines.Count > LineIndex) { bool res = _Lines[LineIndex].InsertNote(Note, NoteIndex); UpdateTimings(); return res; } return false; }
public bool AddNote(CNote Note, int LineIndex) { return AddNote(Note, LineIndex, true); }
public void AddNote(CNote Note) { _Notes.Add(Note); }
public bool ReplaceNote(int Index, CNote Note) { if (_Notes.Count > Index) { _Notes.RemoveAt(Index); _Notes.Insert(Index, Note); updateMinMaxBeat(); return true; } return false; }
public bool InsertNote(CNote Note, int Index) { if (_Notes.Count >= Index) { _Notes.Insert(Index, Note); updateMinMaxBeat(Note); return true; } return false; }