better judge messages

This commit is contained in:
Glenn Maynard
2007-03-06 01:12:06 +00:00
parent 52aca4602b
commit 485a28d541
+12
View File
@@ -82,6 +82,12 @@ void GhostArrowRow::DidTapNote( int iCol, TapNoteScore tns, bool bBright )
{
ASSERT( iCol >= 0 && iCol < (int) m_Ghost.size() );
Message msg("ColumnJudgment");
msg.SetParam( "TapNoteScore", tns );
if( bBright )
msg.SetParam( "Bright", true );
m_Ghost[iCol]->HandleMessage( msg );
m_Ghost[iCol]->PlayCommand( "Judgment" );
if( bBright )
m_Ghost[iCol]->PlayCommand( "Bright" );
@@ -94,6 +100,12 @@ void GhostArrowRow::DidTapNote( int iCol, TapNoteScore tns, bool bBright )
void GhostArrowRow::DidHoldNote( int iCol, HoldNoteScore hns, bool bBright )
{
ASSERT( iCol >= 0 && iCol < (int) m_Ghost.size() );
Message msg("ColumnJudgment");
msg.SetParam( "HoldNoteScore", hns );
if( bBright )
msg.SetParam( "Bright", true );
m_Ghost[iCol]->HandleMessage( msg );
m_Ghost[iCol]->PlayCommand( "Judgment" );
if( bBright )
m_Ghost[iCol]->PlayCommand( "Bright" );