add TweenTime()

This commit is contained in:
Glenn Maynard
2003-01-01 09:05:21 +00:00
parent f30ca2b869
commit d1b2a88a4e
4 changed files with 26 additions and 4 deletions
+9 -1
View File
@@ -48,7 +48,6 @@ Actor::Actor()
}
void Actor::Draw()
{
// call the most-derived versions
@@ -522,3 +521,12 @@ void Actor::Fade( float fSleepSeconds, CString sFadeString, float fFadeSeconds,
LatestTween() = bOnToScreenOrOffOfScreen ? mod : original;
}
float Actor::TweenTime() const
{
float tot = 0;
for(int i = 0; i < m_iNumTweenStates; ++i)
tot += m_TweenInfo[i].m_fTimeLeftInTween;
return tot;
}