DDraceNetwork Docs
CSmoothTime Class Reference

#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 Direction, 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]
 

Member Enumeration Documentation

◆ EAdjustDirection

Enumerator
ADJUSTDIRECTION_DOWN 
ADJUSTDIRECTION_UP 
NUM_ADJUSTDIRECTIONS 

Member Function Documentation

◆ Get()

int64_t CSmoothTime::Get ( int64_t  Now) const

◆ Init()

void CSmoothTime::Init ( int64_t  Target)

◆ SetAdjustSpeed()

void CSmoothTime::SetAdjustSpeed ( EAdjustDirection  Direction,
float  Value 
)

◆ Update()

void CSmoothTime::Update ( CGraph pGraph,
int64_t  Target,
int  TimeLeft,
EAdjustDirection  AdjustDirection 
)

◆ UpdateInt()

void CSmoothTime::UpdateInt ( int64_t  Target)

◆ UpdateMargin()

void CSmoothTime::UpdateMargin ( int64_t  Margin)

Member Data Documentation

◆ m_aAdjustSpeed

float CSmoothTime::m_aAdjustSpeed[NUM_ADJUSTDIRECTIONS]
private

◆ m_Current

int64_t CSmoothTime::m_Current
private

◆ m_Margin

int64_t CSmoothTime::m_Margin
private

◆ m_Snap

int64_t CSmoothTime::m_Snap
private

◆ m_SpikeCounter

int CSmoothTime::m_SpikeCounter
private

◆ m_Target

int64_t CSmoothTime::m_Target
private

The documentation for this class was generated from the following files: