TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TimeTrackerSmall Struct Reference

#include <Timer.h>

Public Member Functions

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

Private Attributes

int32 i_expiryTime
 

Constructor & Destructor Documentation

TimeTrackerSmall::TimeTrackerSmall ( uint32  expiry = 0)
inline
139  : i_expiryTime(expiry)
140  {
141  }
int32 i_expiryTime
Definition: Timer.h:165

Member Function Documentation

int32 TimeTrackerSmall::GetExpiry ( ) const
inline
159  {
160  return i_expiryTime;
161  }
int32 i_expiryTime
Definition: Timer.h:165
bool TimeTrackerSmall::Passed ( ) const
inline
149  {
150  return i_expiryTime <= 0;
151  }
int32 i_expiryTime
Definition: Timer.h:165

+ Here is the caller graph for this function:

void TimeTrackerSmall::Reset ( uint32  interval)
inline
154  {
155  i_expiryTime = interval;
156  }
int32 i_expiryTime
Definition: Timer.h:165

+ Here is the caller graph for this function:

void TimeTrackerSmall::Update ( int32  diff)
inline
144  {
145  i_expiryTime -= diff;
146  }
int32 i_expiryTime
Definition: Timer.h:165

+ Here is the caller graph for this function:

Member Data Documentation

int32 TimeTrackerSmall::i_expiryTime
private

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