Composite NoteData for when one NoteData represents multiple NoteDatas.
This commit is contained in:
@@ -21,6 +21,7 @@ NoteData::NoteData()
|
|||||||
|
|
||||||
void NoteData::Init()
|
void NoteData::Init()
|
||||||
{
|
{
|
||||||
|
m_bComposite = false;
|
||||||
ClearAll();
|
ClearAll();
|
||||||
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
|
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ private:
|
|||||||
// There's no point in inserting empty notes into the map.
|
// There's no point in inserting empty notes into the map.
|
||||||
// Any blank space in the map is defined to be empty.
|
// Any blank space in the map is defined to be empty.
|
||||||
vector<TrackMap> m_TapNotes;
|
vector<TrackMap> m_TapNotes;
|
||||||
|
// This NoteData comprises multiple NoteDatas.
|
||||||
|
bool m_bComposite;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NoteData();
|
NoteData();
|
||||||
@@ -38,6 +40,8 @@ public:
|
|||||||
|
|
||||||
int GetNumTracks() const { return m_TapNotes.size(); }
|
int GetNumTracks() const { return m_TapNotes.size(); }
|
||||||
void SetNumTracks( int iNewNumTracks );
|
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
|
/* Return the note at the given track and row. Row may be out of
|
||||||
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
|
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
|
||||||
|
|||||||
Reference in New Issue
Block a user