AnimationTimer class. This timer is for animating float value.
usage:
More...
Private Member Functions | |
| void | AnimationTimer (int category=CALL_CATEGORY_SYSTEM) |
| void | ~AnimationTimer () |
| void | Run (float targetVal, Managed obj, string updateFunc, string finishedFunc, float startingVal=0, bool loop=false, float speed=1.0, Param params=null, int category=CALL_CATEGORY_SYSTEM) |
| float | GetValue () |
| Returns actual animated value. | |
| override bool | IsRunning () |
| override void | Tick (float timeslice) |
| Ticks the timer, is called by timer subsystem. | |
Private Attributes | |
| private bool | m_Active |
| private float | m_TargetValue |
| private float | m_TargetValueOriginal |
| private float | m_Value |
| protected Managed | m_TargetObject |
| protected string | m_UpdateFunction |
| protected string | m_FinishedFunction |
| protected ref Param | m_Params |
AnimationTimer class. This timer is for animating float value.
usage:
|
inlineprivate |
References OnInit().
|
inlineprivate |
References SetRunning().
|
inlineprivate |
Returns actual animated value.
References m_Value.
Referenced by Land_Underground_EntranceBase::OnUpdateServer(), OnUpdateTimerIn(), and OnUpdateTimerOut().
|
inlineprivate |
References m_Active.
Referenced by CalculateLinePointFade().
|
inlineprivate |
References m_Active, m_FinishedFunction, m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, m_time, m_UpdateFunction, m_Value, and SetRunning().
Referenced by CalculateLinePointFade(), Land_Underground_Stairs_Exit::OnDoorStateChangedServer(), and OnUndergroundPresenceUpdate().
|
inlineprivate |
Ticks the timer, is called by timer subsystem.
References Math::AbsFloat(), ScriptModule::CallFunction(), CGame::GameScript, GetGame(), m_Active, m_FinishedFunction, m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, m_time, m_UpdateFunction, and m_Value.
|
private |
Referenced by IsRunning(), Run(), and Tick().
|
private |
Referenced by GetValue(), Run(), and Tick().