send TapNoteOffset

This commit is contained in:
Glenn Maynard
2007-03-11 04:55:45 +00:00
parent 266d8b9e97
commit c5717006dc
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -1343,7 +1343,7 @@ void Player::DoTapScoreNone()
if( PENALIZE_TAP_SCORE_NONE )
{
SetJudgment( TNS_Miss, false );
SetJudgment( TNS_Miss, 0 );
// the ScoreKeeper will subrtract points later.
}
}
@@ -2081,12 +2081,12 @@ void Player::UpdateJudgedRows()
const TapNote &tn = m_NoteData.GetTapNote( iTrack, iRow );
if( tn.type == TapNote::empty || tn.type == TapNote::mine ) continue;
if( tn.pn != PLAYER_INVALID && tn.pn != pn ) continue;
SetJudgment( tn.result.tns, tn.result.fTapNoteOffset < 0.0f );
SetJudgment( tn.result.tns, tn.result.fTapNoteOffset );
}
}
else
{
SetJudgment( lastTNR.tns, lastTNR.fTapNoteOffset < 0.0f );
SetJudgment( lastTNR.tns, lastTNR.fTapNoteOffset );
}
HandleTapRowScore( iRow );
}
@@ -2432,13 +2432,14 @@ bool Player::IsPlayingBeginner() const
return pSteps && pSteps->GetDifficulty() == Difficulty_Beginner;
}
void Player::SetJudgment( TapNoteScore tns, bool bEarly )
void Player::SetJudgment( TapNoteScore tns, float fTapNoteOffset )
{
Message msg("Judgment");
msg.SetParam( "Player", m_pPlayerState->m_PlayerNumber );
msg.SetParam( "MultiPlayer", m_pPlayerState->m_mp );
msg.SetParam( "TapNoteScore", tns );
msg.SetParam( "Early", bEarly );
msg.SetParam( "Early", fTapNoteOffset < 0.0f );
msg.SetParam( "TapNoteOffset", fTapNoteOffset );
MESSAGEMAN->Broadcast( msg );
}
+1 -1
View File
@@ -117,7 +117,7 @@ protected:
void DrawHoldJudgments();
void SendComboMessages( int iOldCombo, int iOldMissCombo );
void SetJudgment( TapNoteScore tns, bool bEarly );
void SetJudgment( TapNoteScore tns, float fTapNoteOffset );
void SetHoldJudgment( TapNoteScore tns, HoldNoteScore hns, int iTrack );
void SetCombo( int iCombo, int iMisses );