add FinishTweening

This commit is contained in:
Glenn Maynard
2003-06-16 17:33:28 +00:00
parent 32fd0062a9
commit cdb5c0291d
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -341,6 +341,11 @@ void Actor::StopTweening()
ASSERT( m_TweenInfo.empty() );
}
void Actor::FinishTweening()
{
m_current = DestTweenState();
StopTweening();
}
void Actor::ScaleTo( const RectI &rect, StretchType st )
+1
View File
@@ -139,6 +139,7 @@ public:
virtual void BeginTweening( float time, TweenType tt = TWEEN_LINEAR );
virtual void StopTweening();
virtual void FinishTweening();
virtual float GetTweenTimeLeft() const; // Amount of time until all tweens have stopped
virtual TweenState& DestTweenState() // where Actor will end when its tween finish
{