remove never used ForceFail
This commit is contained in:
@@ -34,7 +34,6 @@ public:
|
|||||||
virtual bool IsFailing() const = 0;
|
virtual bool IsFailing() const = 0;
|
||||||
virtual float GetLife() const { return 0; } // for cosmetic use only
|
virtual float GetLife() const { return 0; } // for cosmetic use only
|
||||||
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) = 0;
|
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) = 0;
|
||||||
virtual void ForceFail() = 0;
|
|
||||||
|
|
||||||
static LifeMeter *MakeLifeMeter( SongOptions::LifeType t );
|
static LifeMeter *MakeLifeMeter( SongOptions::LifeType t );
|
||||||
|
|
||||||
|
|||||||
@@ -421,13 +421,6 @@ void LifeMeterBar::FillForHowToPlay( int NumW2s, int NumMisses )
|
|||||||
AfterLifeChanged();
|
AfterLifeChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LifeMeterBar::ForceFail()
|
|
||||||
{
|
|
||||||
m_fLifePercentage = 0;
|
|
||||||
AfterLifeChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2001-2004 Chris Danford
|
* (c) 2001-2004 Chris Danford
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ public:
|
|||||||
virtual bool IsHot() const;
|
virtual bool IsHot() const;
|
||||||
virtual bool IsFailing() const;
|
virtual bool IsFailing() const;
|
||||||
virtual float GetLife() const { return m_fLifePercentage; }
|
virtual float GetLife() const { return m_fLifePercentage; }
|
||||||
virtual void ForceFail();
|
|
||||||
|
|
||||||
void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty);
|
void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty);
|
||||||
void FillForHowToPlay(int NumT2s, int NumMisses);
|
void FillForHowToPlay(int NumT2s, int NumMisses);
|
||||||
|
|||||||
@@ -166,12 +166,6 @@ float LifeMeterBattery::GetLife() const
|
|||||||
return float(m_iLivesLeft) / GAMESTATE->m_SongOptions.GetSong().m_iBatteryLives;
|
return float(m_iLivesLeft) / GAMESTATE->m_SongOptions.GetSong().m_iBatteryLives;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LifeMeterBattery::ForceFail()
|
|
||||||
{
|
|
||||||
m_iLivesLeft = 0;
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LifeMeterBattery::Refresh()
|
void LifeMeterBattery::Refresh()
|
||||||
{
|
{
|
||||||
if( m_iLivesLeft <= 4 )
|
if( m_iLivesLeft <= 4 )
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ public:
|
|||||||
virtual bool IsFailing() const;
|
virtual bool IsFailing() const;
|
||||||
virtual float GetLife() const;
|
virtual float GetLife() const;
|
||||||
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) { };
|
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) { };
|
||||||
virtual void ForceFail();
|
|
||||||
|
|
||||||
void Refresh();
|
void Refresh();
|
||||||
|
|
||||||
|
|||||||
@@ -171,11 +171,6 @@ float LifeMeterTime::GetLife() const
|
|||||||
return fPercent;
|
return fPercent;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LifeMeterTime::ForceFail()
|
|
||||||
{
|
|
||||||
m_fLifeTotalLostSeconds = m_fLifeTotalGainedSeconds + 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
float LifeMeterTime::GetLifeSeconds() const
|
float LifeMeterTime::GetLifeSeconds() const
|
||||||
{
|
{
|
||||||
float fSecs = m_fLifeTotalGainedSeconds - (m_fLifeTotalLostSeconds + STATSMAN->m_CurStageStats.fStepsSeconds);
|
float fSecs = m_fLifeTotalGainedSeconds - (m_fLifeTotalLostSeconds + STATSMAN->m_CurStageStats.fStepsSeconds);
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ public:
|
|||||||
virtual bool IsFailing() const;
|
virtual bool IsFailing() const;
|
||||||
virtual float GetLife() const;
|
virtual float GetLife() const;
|
||||||
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) { };
|
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) { };
|
||||||
virtual void ForceFail();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float GetLifeSeconds() const;
|
float GetLifeSeconds() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user