Skip to content

Commit

Permalink
privatize chartkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 2, 2017
1 parent 7e5cb55 commit 39a3134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Steps.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Song;

typedef vector<float> SDiffs;
typedef vector<SDiffs> MinaSD;
using std::string;

/**
* @brief Enforce a limit on the number of chars for the description.
Expand Down Expand Up @@ -163,8 +164,7 @@ class Steps
/* Now for half the reason I'm bothering to do this... generate a chart key using note
data and timingdata in conjuction. Do it during load and save it in the steps data so
that we have to do it as few times as possible.*/
RString ChartKey = "";
RString GetChartKey() const { return ChartKey; }
const string& GetChartKey() const { return ChartKey; }
vector<float> thestuffs = { 0.f,0.f,0.f,0.f,0.f };
MinaSD stuffnthings = { thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs, thestuffs };
void SetChartKey(const RString &k) { ChartKey = k; }
Expand Down Expand Up @@ -221,6 +221,7 @@ class Steps
void GetDisplayBpms( DisplayBpms &addTo) const;

private:
string ChartKey = "";
/* We can have one or both of these; if we have both, they're always identical.
* Call Compress() to force us to only have m_sNoteDataCompressed; otherwise, creation of
* these is transparent. */
Expand Down

0 comments on commit 39a3134

Please sign in to comment.