Composite NoteData for when one NoteData represents multiple NoteDatas.
This commit is contained in:
@@ -21,6 +21,7 @@ NoteData::NoteData()
|
||||
|
||||
void NoteData::Init()
|
||||
{
|
||||
m_bComposite = false;
|
||||
ClearAll();
|
||||
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
|
||||
}
|
||||
|
||||
@@ -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<TrackMap> m_TapNotes;
|
||||
vector<TrackMap> 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. */
|
||||
|
||||
Reference in New Issue
Block a user