From 91f13296538db93dc70cf2e491c0bfcfe78afa2a Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 20 Jun 2006 13:20:45 +0000 Subject: [PATCH] Composite NoteData for when one NoteData represents multiple NoteDatas. --- stepmania/src/NoteData.cpp | 1 + stepmania/src/NoteData.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index 4e1e01d250..b51037e852 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -21,6 +21,7 @@ NoteData::NoteData() void NoteData::Init() { + m_bComposite = false; ClearAll(); m_TapNotes = vector(); // ensure that the memory is freed } diff --git a/stepmania/src/NoteData.h b/stepmania/src/NoteData.h index de5b3b4bc1..be025dc97d 100644 --- a/stepmania/src/NoteData.h +++ b/stepmania/src/NoteData.h @@ -29,7 +29,9 @@ public: private: // There's no point in inserting empty notes into the map. // Any blank space in the map is defined to be empty. - vector m_TapNotes; + vector m_TapNotes; + // This NoteData comprises multiple NoteDatas. + bool m_bComposite; public: NoteData(); @@ -38,6 +40,8 @@ public: int GetNumTracks() const { return m_TapNotes.size(); } void SetNumTracks( int iNewNumTracks ); + bool IsComposite() const { return m_bComposite; } + void SetComposite( bool b ) { m_bComposite = b; } /* Return the note at the given track and row. Row may be out of * range; pretend the song goes on with TAP_EMPTYs indefinitely. */