AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
TimeTrackerSmall Struct Reference

#include "Timer.h"

Public Member Functions

 TimeTrackerSmall (int32 expiry=0)
 
void Update (int32 diff)
 
bool Passed () const
 
void Reset (int32 interval)
 
int32 GetExpiry () const
 

Private Attributes

int32 i_expiryTime
 

Detailed Description

Constructor & Destructor Documentation

◆ TimeTrackerSmall()

TimeTrackerSmall::TimeTrackerSmall ( int32  expiry = 0)
inline
235 : i_expiryTime(expiry)
236 {
237 }
int32 i_expiryTime
Definition: Timer.h:260

Member Function Documentation

◆ GetExpiry()

int32 TimeTrackerSmall::GetExpiry ( ) const
inline
255 {
256 return i_expiryTime;
257 }

References i_expiryTime.

◆ Passed()

bool TimeTrackerSmall::Passed ( ) const
inline
245 {
246 return i_expiryTime <= 0;
247 }

References i_expiryTime.

Referenced by MotionTransport::Update(), and DynTreeImpl::update().

◆ Reset()

void TimeTrackerSmall::Reset ( int32  interval)
inline
250 {
251 i_expiryTime = interval;
252 }

References i_expiryTime.

Referenced by MotionTransport::Update(), and DynTreeImpl::update().

◆ Update()

void TimeTrackerSmall::Update ( int32  diff)
inline
240 {
241 i_expiryTime -= diff;
242 }

References i_expiryTime.

Referenced by MotionTransport::Update(), and DynTreeImpl::update().

Member Data Documentation

◆ i_expiryTime

int32 TimeTrackerSmall::i_expiryTime
private

Referenced by GetExpiry(), Passed(), Reset(), and Update().