diff --git a/stepmania/src/ActorFrame.h b/stepmania/src/ActorFrame.h index 58003f5203..baa1f431ba 100644 --- a/stepmania/src/ActorFrame.h +++ b/stepmania/src/ActorFrame.h @@ -28,7 +28,7 @@ public: virtual float TweenTime() const; protected: - CArray m_SubActors; + vector m_SubActors; }; #endif diff --git a/stepmania/src/BGAnimation.h b/stepmania/src/BGAnimation.h index 2e8b76a9e6..f5f5f23312 100644 --- a/stepmania/src/BGAnimation.h +++ b/stepmania/src/BGAnimation.h @@ -42,7 +42,7 @@ public: void LosingFocus(); protected: - CArray m_Layers; + vector m_Layers; float m_fFadeSeconds; }; diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index 8eba016762..4a4abcf676 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -39,7 +39,7 @@ int CompareBGSegments(const BGSegment &seg1, const BGSegment &seg2) return seg1.m_fStartBeat < seg2.m_fStartBeat; } -void SortBGSegmentArray( CArray &arrayBGSegments ) +void SortBGSegmentArray( vector &arrayBGSegments ) { sort( arrayBGSegments.begin(), arrayBGSegments.end(), CompareBGSegments ); } diff --git a/stepmania/src/Background.h b/stepmania/src/Background.h index c337c85c9f..d2064fd51a 100644 --- a/stepmania/src/Background.h +++ b/stepmania/src/Background.h @@ -59,8 +59,8 @@ protected: BGAnimation m_BGADanger; // used in all BackgroundModes except OFF - CArray m_BGAnimations; - CArray m_aBGSegments; + vector m_BGAnimations; + vector m_aBGSegments; int m_iCurBGSegment; // this increases as we move into new segments BGAnimation* GetCurBGA() { int index = m_aBGSegments[m_iCurBGSegment].m_iBGIndex; return m_BGAnimations[index]; }; BGAnimation* m_pCurrentBGA; diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 491df29f99..6859886cd6 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -31,7 +31,7 @@ Course::Course() m_iExtra = 0; } -void Course::LoadFromCRSFile( CString sPath, CArray &apSongs ) +void Course::LoadFromCRSFile( CString sPath, vector &apSongs ) { MsdFile msd; if( !msd.ReadFile(sPath) ) @@ -144,7 +144,7 @@ void Course::LoadFromCRSFile( CString sPath, CArray &apSongs ) } -void Course::CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray &apSongsInGroup ) +void Course::CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, vector &apSongsInGroup ) { m_bRepeat = true; m_bRandomize = true; @@ -241,8 +241,8 @@ void Course::AddStage( Song* pSong, CString sDescription, CString sModifiers ) /* When bShuffled is true, returns courses in the song ordering list. */ void Course::GetSongAndNotesForCurrentStyle( - CArray& apSongsOut, - CArray& apNotesOut, + vector& apSongsOut, + vector& apNotesOut, CStringArray& asModifiersOut, bool bShuffled ) { @@ -303,7 +303,7 @@ static int CompareCoursePointersByDifficulty(const Course* pCourse1, const Cours return pCourse1->GetNumStages() < pCourse2->GetNumStages(); } -void SortCoursePointerArrayByDifficulty( CArray &apCourses ) +void SortCoursePointerArrayByDifficulty( vector &apCourses ) { sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByDifficulty ); } diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 268d11c7a3..7bc5008169 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -50,11 +50,11 @@ public: void GetSongOptions( SongOptions* pSO_out); int GetNumStages() const; - void LoadFromCRSFile( CString sPath, CArray &apSongs ); - void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray &apSongsInGroup ); + void LoadFromCRSFile( CString sPath, vector &apSongs ); + void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, vector &apSongsInGroup ); void AddStage( Song* pSong, CString sDescription, CString sModifiers ); - void GetSongAndNotesForCurrentStyle( CArray& apSongsOut, CArray& apNotesOut, CStringArray& asModifiersOut, bool bShuffled ); + void GetSongAndNotesForCurrentStyle( vector& apSongsOut, vector& apNotesOut, CStringArray& asModifiersOut, bool bShuffled ); RageColor GetColor(); private: @@ -62,7 +62,7 @@ private: }; -void SortCoursePointerArrayByDifficulty( CArray &apCourses ); +void SortCoursePointerArrayByDifficulty( vector &apCourses ); #endif diff --git a/stepmania/src/GameManager.cpp b/stepmania/src/GameManager.cpp index f300f80ca6..94ebc40be9 100644 --- a/stepmania/src/GameManager.cpp +++ b/stepmania/src/GameManager.cpp @@ -1476,7 +1476,7 @@ const StyleDef* GameManager::GetStyleDefForStyle( Style s ) return &g_StyleDefs[ s ]; } -void GameManager::GetGameplayStylesForGame( Game game, CArray& aStylesAddTo, bool editor ) +void GameManager::GetGameplayStylesForGame( Game game, vector