move some code out of the header

This commit is contained in:
Glenn Maynard
2002-09-08 22:02:39 +00:00
parent 76e1a946c7
commit d22545d1cb
2 changed files with 15 additions and 17 deletions
+14
View File
@@ -250,6 +250,20 @@ void Notes::GetNoteData( NoteData* pNoteDataOut ) const
pNoteDataOut->LoadFromSMNoteDataString( m_sSMNoteData );
}
// Color is a function of DifficultyClass and Intended Style
D3DXCOLOR Notes::GetColor() const
{
CString sDescription = m_sDescription;
sDescription.MakeLower();
if( -1 != sDescription.Find("battle") )
return D3DXCOLOR(1,0.5f,0,1); // orange
else if( -1 != m_sDescription.Find("couple") )
return D3DXCOLOR(0,0,1,1); // blue
else
return DifficultyClassToColor( m_DifficultyClass );
}
void Notes::TidyUpData()
{
if( m_DifficultyClass == CLASS_INVALID )