![]() |
DDNet documentation
|
#include <smooth_time.h>
Public Types | |
| enum | EAdjustDirection { ADJUSTDIRECTION_DOWN = 0 , ADJUSTDIRECTION_UP , NUM_ADJUSTDIRECTIONS } |
Public Member Functions | |
| void | Init (int64_t Target) |
| void | SetAdjustSpeed (EAdjustDirection DirectionDirection, float Value) |
| int64_t | Get (int64_t Now) const |
| void | UpdateInt (int64_t Target) |
| void | Update (CGraph *pGraph, int64_t Target, int TimeLeft, EAdjustDirection AdjustDirection) |
| void | UpdateMargin (int64_t Margin) |
Private Attributes | |
| int64_t | m_Snap |
| int64_t | m_Current |
| int64_t | m_Target |
| int64_t | m_Margin |
| int | m_SpikeCounter |
| float | m_aAdjustSpeed [NUM_ADJUSTDIRECTIONS] |
| int64_t CSmoothTime::Get | ( | int64_t | Now | ) | const |
| void CSmoothTime::Init | ( | int64_t | Target | ) |
| void CSmoothTime::SetAdjustSpeed | ( | EAdjustDirection | Direction, |
| float | Value ) |
| void CSmoothTime::Update | ( | CGraph * | pGraph, |
| int64_t | Target, | ||
| int | TimeLeft, | ||
| EAdjustDirection | AdjustDirection ) |
| void CSmoothTime::UpdateInt | ( | int64_t | Target | ) |
| void CSmoothTime::UpdateMargin | ( | int64_t | Margin | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |