cleanup survival elements

This commit is contained in:
Chris Danford
2005-04-21 11:16:01 +00:00
parent b9de560fdc
commit 371f97effe
22 changed files with 833 additions and 342 deletions
+6
View File
@@ -156,6 +156,12 @@ float LifeMeterBattery::GetLife() const
return float(m_iLivesLeft) / GAMESTATE->m_SongOptions.m_iBatteryLives;
}
void LifeMeterBattery::ForceFail()
{
m_iLivesLeft = 0;
Refresh();
}
void LifeMeterBattery::Refresh()
{
if( m_iLivesLeft <= 4 )