From 485a28d5419f2150bd29012b315b333cb34fe398 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 6 Mar 2007 01:12:06 +0000 Subject: [PATCH] better judge messages --- stepmania/src/GhostArrowRow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stepmania/src/GhostArrowRow.cpp b/stepmania/src/GhostArrowRow.cpp index 6b8438e88d..cf58f96e1a 100644 --- a/stepmania/src/GhostArrowRow.cpp +++ b/stepmania/src/GhostArrowRow.cpp @@ -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" );