|
DayZ 1.24
|
Private Member Functions | |
| void | Animate (float val, float speed=1.0) |
| Starts animate value until value reaches target value. | |
| void | AnimateLoop (float speed=1.0) |
| Starts infinite animation loop <-1,1>. Based on sinus transition. | |
| float | GetValue () |
| Returns actual animated value. | |
| float | GetTargetValue () |
| Returns target value. While AnimateLoop returns angle of cycle in radians. | |
| void | SetValue (float val) |
| Sets both value and target value. | |
| bool | IsRunning () |
| void | Tick (float timeslice) |
| Ticks the timer, is called by timer subsystem. | |
Private Attributes | |
| bool | m_active = false |
| bool | m_loop = false |
| float | m_target_value = 0 |
| float | m_value = 0 |
| float | m_time = 0 |
Starts animate value until value reaches target value.
| val | float target value |
| speed | float speed of animating, units per second |
Definition at line 717 of file tools.c.
References m_active, m_loop, m_target_value, and m_time.
Starts infinite animation loop <-1,1>. Based on sinus transition.
| speed | float speed of animating , cycles per second (1.0 means one 360 degree sinus cycle per second: 0..1..0..-1..0) |
Definition at line 729 of file tools.c.
References m_active, m_loop, m_target_value, m_time, and m_value.
|
inlineprivate |
Returns target value. While AnimateLoop returns angle of cycle in radians.
Definition at line 749 of file tools.c.
References m_target_value.
|
inlineprivate |
|
inlineprivate |
Sets both value and target value.
Definition at line 757 of file tools.c.
References m_target_value, and m_value.
Ticks the timer, is called by timer subsystem.
Definition at line 770 of file tools.c.
References Math::AbsFloat(), m_active, m_loop, m_target_value, m_time, m_value, Math::PI2, and Math::Sin().
Definition at line 706 of file tools.c.
Referenced by Animate(), AnimateLoop(), IsRunning(), and Tick().
Definition at line 707 of file tools.c.
Referenced by Animate(), AnimateLoop(), and Tick().
|
private |
Definition at line 708 of file tools.c.
Referenced by Animate(), AnimateLoop(), GetTargetValue(), SetValue(), and Tick().
|
private |
Definition at line 710 of file tools.c.
Referenced by Animate(), AnimateLoop(), and Tick().
|
private |
Definition at line 709 of file tools.c.
Referenced by AnimateLoop(), GetValue(), SetValue(), and Tick().