add BGAnimationLayer::GetMaxTweenTimeLeft

this isn't an overload of GetTweenTimeLeft, since it returns the
tween time of its children, which is separate from its own tween
time
This commit is contained in:
Glenn Maynard
2003-03-17 01:34:12 +00:00
parent daf9d373a3
commit 7f17ae1b42
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -600,6 +600,16 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer )
}
}
float BGAnimationLayer::GetMaxTweenTimeLeft() const
{
float ret = 0;
for( unsigned i=0; i<m_Sprites.size(); i++ )
ret = max(ret, m_Sprites[i]->GetTweenTimeLeft());
return ret;
}
void BGAnimationLayer::Update( float fDeltaTime )
{
const float fSongBeat = GAMESTATE->m_fSongBeat;