move some members out of the header;
remove a couple includes
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
#include "SongCacheIndex.h"
|
#include "SongCacheIndex.h"
|
||||||
#include "GameManager.h"
|
#include "GameManager.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
#include "StyleDef.h"
|
||||||
|
#include "Notes.h"
|
||||||
|
|
||||||
#include "NotesLoaderSM.h"
|
#include "NotesLoaderSM.h"
|
||||||
#include "NotesLoaderDWI.h"
|
#include "NotesLoaderDWI.h"
|
||||||
@@ -958,3 +960,20 @@ bool Song::RouletteDisplayed() const
|
|||||||
if(!PREFSMAN->m_bHiddenSongs) return true;
|
if(!PREFSMAN->m_bHiddenSongs) return true;
|
||||||
return m_SelectionDisplay != SHOW_NEVER;
|
return m_SelectionDisplay != SHOW_NEVER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Song::HasMusic() const {return m_sMusicFile != "" && IsAFile(GetMusicPath()); };
|
||||||
|
bool Song::HasBanner() const {return m_sBannerFile != "" && IsAFile(GetBannerPath()); };
|
||||||
|
bool Song::HasBackground() const {return m_sBackgroundFile != "" && IsAFile(GetBackgroundPath()); };
|
||||||
|
bool Song::HasCDTitle() const {return m_sCDTitleFile != "" && IsAFile(GetCDTitlePath()); };
|
||||||
|
bool Song::HasMovieBackground() const {return m_sMovieBackgroundFile != ""&& IsAFile(GetMovieBackgroundPath()); };
|
||||||
|
bool Song::HasBGChanges() const {return m_BackgroundChanges.GetSize() > 0; };
|
||||||
|
|
||||||
|
int Song::GetNumTimesPlayed() const
|
||||||
|
{
|
||||||
|
int iTotalNumTimesPlayed = 0;
|
||||||
|
for( int i=0; i<m_apNotes.GetSize(); i++ )
|
||||||
|
{
|
||||||
|
iTotalNumTimesPlayed += m_apNotes[i]->m_iNumTimesPlayed;
|
||||||
|
}
|
||||||
|
return iTotalNumTimesPlayed;
|
||||||
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "D3DX8Math.h" // for D3DXCOLOR
|
#include "D3DX8Math.h" // for D3DXCOLOR
|
||||||
class IniFile;
|
|
||||||
|
|
||||||
|
class IniFile;
|
||||||
|
|
||||||
class ThemeManager
|
class ThemeManager
|
||||||
{
|
{
|
||||||
|
|||||||
+11
-19
@@ -10,11 +10,11 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Notes.h"
|
|
||||||
|
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "RageUtil.h"
|
#include "Grade.h"
|
||||||
#include "StyleDef.h"
|
|
||||||
|
struct Notes;
|
||||||
|
class StyleDef;
|
||||||
|
|
||||||
extern const int FILE_CACHE_VERSION;
|
extern const int FILE_CACHE_VERSION;
|
||||||
|
|
||||||
@@ -117,12 +117,12 @@ public:
|
|||||||
CString GetMovieBackgroundPath() const {return m_sSongDir+m_sMovieBackgroundFile; };
|
CString GetMovieBackgroundPath() const {return m_sSongDir+m_sMovieBackgroundFile; };
|
||||||
|
|
||||||
|
|
||||||
bool HasMusic() const {return m_sMusicFile != "" && IsAFile(GetMusicPath()); };
|
bool HasMusic() const;
|
||||||
bool HasBanner() const {return m_sBannerFile != "" && IsAFile(GetBannerPath()); };
|
bool HasBanner() const;
|
||||||
bool HasBackground() const {return m_sBackgroundFile != "" && IsAFile(GetBackgroundPath()); };
|
bool HasBackground() const;
|
||||||
bool HasCDTitle() const {return m_sCDTitleFile != "" && IsAFile(GetCDTitlePath()); };
|
bool HasCDTitle() const;
|
||||||
bool HasMovieBackground() const {return m_sMovieBackgroundFile != ""&& IsAFile(GetMovieBackgroundPath()); };
|
bool HasMovieBackground() const;
|
||||||
bool HasBGChanges() const {return m_BackgroundChanges.GetSize() > 0; };
|
bool HasBGChanges() const;
|
||||||
|
|
||||||
CArray<BPMSegment, BPMSegment&> m_BPMSegments; // this must be sorted before gameplay
|
CArray<BPMSegment, BPMSegment&> m_BPMSegments; // this must be sorted before gameplay
|
||||||
CArray<StopSegment, StopSegment&> m_StopSegments; // this must be sorted before gameplay
|
CArray<StopSegment, StopSegment&> m_StopSegments; // this must be sorted before gameplay
|
||||||
@@ -175,15 +175,7 @@ public:
|
|||||||
bool SongHasNotesType( NotesType nt ) const;
|
bool SongHasNotesType( NotesType nt ) const;
|
||||||
bool SongHasNotesTypeAndDifficulty( NotesType nt, DifficultyClass dc ) const;
|
bool SongHasNotesTypeAndDifficulty( NotesType nt, DifficultyClass dc ) const;
|
||||||
void GetNotesThatMatch( const StyleDef *s, int p, CArray<Notes*, Notes*>& arrayAddTo ) const;
|
void GetNotesThatMatch( const StyleDef *s, int p, CArray<Notes*, Notes*>& arrayAddTo ) const;
|
||||||
int GetNumTimesPlayed() const
|
int GetNumTimesPlayed() const;
|
||||||
{
|
|
||||||
int iTotalNumTimesPlayed = 0;
|
|
||||||
for( int i=0; i<m_apNotes.GetSize(); i++ )
|
|
||||||
{
|
|
||||||
iTotalNumTimesPlayed += m_apNotes[i]->m_iNumTimesPlayed;
|
|
||||||
}
|
|
||||||
return iTotalNumTimesPlayed;
|
|
||||||
}
|
|
||||||
bool IsNew() const;
|
bool IsNew() const;
|
||||||
bool IsEasy( NotesType nt ) const;
|
bool IsEasy( NotesType nt ) const;
|
||||||
Grade GetGradeForDifficultyClass( const StyleDef *s, int p, DifficultyClass dc ) const;
|
Grade GetGradeForDifficultyClass( const StyleDef *s, int p, DifficultyClass dc ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user