Added flag for making an actor use the effect delta for tweening. Updated changelog.

This commit is contained in:
Kyzentun Keeslala
2016-03-17 19:37:27 -06:00
parent 89738c68c9
commit a4ecf15ce3
5 changed files with 56 additions and 8 deletions
+4
View File
@@ -281,10 +281,13 @@ public:
virtual void Update( float fDeltaTime ); // this can short circuit UpdateInternal
virtual void UpdateInternal( float fDeltaTime ); // override this
void UpdateTweening( float fDeltaTime );
void CalcPercentThroughTween();
// These next functions should all be overridden by a derived class that has its own tweening states to handle.
virtual void SetCurrentTweenStart() {}
virtual void EraseHeadTween() {}
virtual void UpdatePercentThroughTween( float PercentThroughTween ) {}
bool get_tween_uses_effect_delta() { return m_tween_uses_effect_delta; }
void set_tween_uses_effect_delta(bool t) { m_tween_uses_effect_delta= t; }
/**
* @brief Retrieve the Actor's name.
@@ -700,6 +703,7 @@ protected:
// -Kyz
float m_effect_period;
EffectClock m_EffectClock;
bool m_tween_uses_effect_delta;
/* This can be used in lieu of the fDeltaTime parameter to Update() to
* follow the effect clock. Actor::Update must be called first. */