const fixes

This commit is contained in:
Glenn Maynard
2003-11-03 18:24:13 +00:00
parent e4e58d786e
commit 8c08e5ad50
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -31,9 +31,9 @@ public:
* received for the initial tap note. */
virtual void ChangeLife( HoldNoteScore score, TapNoteScore tscore ) = 0;
virtual void OnDancePointsChange() = 0; // look in GAMESTATE and update the display
virtual bool IsInDanger() = 0;
virtual bool IsHot() = 0;
virtual bool IsFailing() = 0;
virtual bool IsInDanger() const = 0;
virtual bool IsHot() const = 0;
virtual bool IsFailing() const = 0;
virtual float GetLife() const { return 0; } // for cosmetic use only
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) = 0;
+3 -3
View File
@@ -412,17 +412,17 @@ void LifeMeterBar::AfterLifeChanged()
}
bool LifeMeterBar::IsHot()
bool LifeMeterBar::IsHot() const
{
return m_fLifePercentage >= 1;
}
bool LifeMeterBar::IsInDanger()
bool LifeMeterBar::IsInDanger() const
{
return m_fLifePercentage < g_fDangerThreshold;
}
bool LifeMeterBar::IsFailing()
bool LifeMeterBar::IsFailing() const
{
return m_fLifePercentage <= 0;
}
+3 -3
View File
@@ -32,9 +32,9 @@ public:
virtual void ChangeLife( HoldNoteScore score, TapNoteScore tscore );
virtual void AfterLifeChanged();
virtual void OnDancePointsChange() {}; // this life meter doesn't care
virtual bool IsInDanger();
virtual bool IsHot();
virtual bool IsFailing();
virtual bool IsInDanger() const;
virtual bool IsHot() const;
virtual bool IsFailing() const;
virtual float GetLife() const { return m_fLifePercentage; }
void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty);
+3 -3
View File
@@ -140,17 +140,17 @@ void LifeMeterBattery::OnDancePointsChange()
}
bool LifeMeterBattery::IsInDanger()
bool LifeMeterBattery::IsInDanger() const
{
return false;
}
bool LifeMeterBattery::IsHot()
bool LifeMeterBattery::IsHot() const
{
return false;
}
bool LifeMeterBattery::IsFailing()
bool LifeMeterBattery::IsFailing() const
{
return GAMESTATE->m_CurStageStats.bFailedEarlier[m_PlayerNumber];
}
+3 -3
View File
@@ -32,9 +32,9 @@ public:
virtual void ChangeLife( TapNoteScore score );
virtual void ChangeLife( HoldNoteScore score, TapNoteScore tscore );
virtual void OnDancePointsChange(); // look in GAMESTATE and update the display
virtual bool IsInDanger();
virtual bool IsHot();
virtual bool IsFailing();
virtual bool IsInDanger() const;
virtual bool IsHot() const;
virtual bool IsFailing() const;
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) { };