TrinityCore
PeriodicTimer Struct Reference

#include <Timer.h>

Public Member Functions

 PeriodicTimer (int32 period, int32 start_time)
 
bool Update (const uint32 diff)
 
void SetPeriodic (int32 period, int32 start_time)
 
void TUpdate (int32 diff)
 
bool TPassed () const
 
void TReset (int32 diff, int32 period)
 

Private Attributes

int32 i_period
 
int32 i_expireTime
 

Detailed Description

Definition at line 155 of file Timer.h.

Constructor & Destructor Documentation

◆ PeriodicTimer()

PeriodicTimer::PeriodicTimer ( int32  period,
int32  start_time 
)
inline

Definition at line 159 of file Timer.h.

Member Function Documentation

◆ SetPeriodic()

void PeriodicTimer::SetPeriodic ( int32  period,
int32  start_time 
)
inline

Definition at line 173 of file Timer.h.

◆ TPassed()

bool PeriodicTimer::TPassed ( ) const
inline

Definition at line 181 of file Timer.h.

+ Here is the caller graph for this function:

◆ TReset()

void PeriodicTimer::TReset ( int32  diff,
int32  period 
)
inline

Definition at line 182 of file Timer.h.

+ Here is the caller graph for this function:

◆ TUpdate()

void PeriodicTimer::TUpdate ( int32  diff)
inline

Definition at line 180 of file Timer.h.

+ Here is the caller graph for this function:

◆ Update()

bool PeriodicTimer::Update ( const uint32  diff)
inline

Definition at line 164 of file Timer.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ i_expireTime

int32 PeriodicTimer::i_expireTime
private

Definition at line 187 of file Timer.h.

◆ i_period

int32 PeriodicTimer::i_period
private

Definition at line 186 of file Timer.h.


The documentation for this struct was generated from the following file: