From 21e7c5801b7b5ace270afb1623a9e18b1c9c79f7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 2 Nov 2002 22:25:46 +0000 Subject: [PATCH] Add HoldNote getter. Make m_TapNotes private. --- stepmania/src/NoteData.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteData.h b/stepmania/src/NoteData.h index 2a20a541a6..62dd9d4963 100644 --- a/stepmania/src/NoteData.h +++ b/stepmania/src/NoteData.h @@ -24,6 +24,9 @@ class NoteData { + /* Keep this aligned, so that they all have the same size. */ + vector m_TapNotes[MAX_NOTE_TRACKS]; + public: NoteData(); ~NoteData(); @@ -33,8 +36,6 @@ public: int m_iNumTracks; - /* Keep this aligned, so that they all have the same size. */ - vector m_TapNotes[MAX_NOTE_TRACKS]; HoldNote m_HoldNotes[MAX_HOLD_NOTES]; int m_iNumHoldNotes; @@ -69,6 +70,9 @@ public: // used in edit/record void AddHoldNote( HoldNote newNote ); // add note hold note merging overlapping HoldNotes and destroying TapNotes underneath void RemoveHoldNote( int index ); + HoldNote &GetHoldNote( int index ) { return m_HoldNotes[index]; } + const HoldNote &GetHoldNote( int index ) const { return m_HoldNotes[index]; } + const int GetNumHoldNotes() const { return m_iNumHoldNotes; } // statistics bool IsThereANoteAtRow( int iRow ) const;