add FAIL_COMBO_OF_30_MISSES

This commit is contained in:
Chris Danford
2004-07-31 19:14:53 +00:00
parent 20604f69f0
commit 35869118d9
6 changed files with 49 additions and 21 deletions
+17 -12
View File
@@ -1621,28 +1621,33 @@ void GameState::StoreRankingName( PlayerNumber pn, CString name )
bool GameState::AllAreInDangerOrWorse() const
{
FOREACH_PlayerNumber( p )
if( this->IsPlayerEnabled(p) )
if( m_HealthState[p] < DANGER )
return false;
FOREACH_EnabledPlayer( p )
if( m_HealthState[p] < DANGER )
return false;
return true;
}
bool GameState::AllAreDead() const
{
FOREACH_PlayerNumber( p )
if( this->IsPlayerEnabled(p) )
if( m_HealthState[p] < DEAD )
return false;
FOREACH_EnabledPlayer( p )
if( m_HealthState[p] < DEAD )
return false;
return true;
}
bool GameState::AllHaveComboOf30OrMoreMisses() const
{
FOREACH_EnabledPlayer( p )
if( g_CurStageStats.iCurMissCombo[p] < 30 )
return false;
return true;
}
bool GameState::OneIsHot() const
{
FOREACH_PlayerNumber( p )
if( this->IsPlayerEnabled(PlayerNumber(p)) )
if( m_HealthState[p] == HOT )
return true;
FOREACH_EnabledPlayer( p )
if( m_HealthState[p] == HOT )
return true;
return false;
}