TrinityCore
Loading...
Searching...
No Matches
TimeTracker Struct Reference

#include <Timer.h>

Public Member Functions

 TimeTracker (int32 expiry=0)
 
 TimeTracker (Milliseconds expiry)
 
void Update (int32 diff)
 
void Update (Milliseconds diff)
 
bool Passed () const
 
void Reset (int32 expiry)
 
void Reset (Milliseconds expiry)
 
Milliseconds GetExpiry () const
 

Private Attributes

Milliseconds _expiryTime
 

Detailed Description

Definition at line 115 of file Timer.h.

Constructor & Destructor Documentation

◆ TimeTracker() [1/2]

TimeTracker::TimeTracker ( int32  expiry = 0)
inline

Definition at line 118 of file Timer.h.

◆ TimeTracker() [2/2]

TimeTracker::TimeTracker ( Milliseconds  expiry)
inline

Definition at line 119 of file Timer.h.

Member Function Documentation

◆ GetExpiry()

Milliseconds TimeTracker::GetExpiry ( ) const
inline

Definition at line 146 of file Timer.h.

References _expiryTime.

◆ Passed()

◆ Reset() [1/2]

void TimeTracker::Reset ( int32  expiry)
inline

Definition at line 136 of file Timer.h.

References Reset().

Referenced by battleground_alterac_valley::battleground_alterac_valley(), battleground_battle_for_gilneas::battleground_battle_for_gilneas(), battleground_eye_of_the_storm::battleground_eye_of_the_storm(), battleground_isle_of_conquest::battleground_isle_of_conquest(), TerrainInfo::CleanUpGrids(), GameObjectType::ControlZone::ControlZone(), boss_high_inquisitor_fairbanks::DamageTaken(), FormationMovementGenerator::DoInitialize(), FormationMovementGenerator::DoUpdate(), CritterAI::JustEngagedWith(), boss_scarlet_commander_mograine::KilledUnit(), boss_high_inquisitor_whitemane::KilledUnit(), battleground_alterac_valley::OnUpdate(), battleground_battle_for_gilneas::OnUpdate(), battleground_eye_of_the_storm::OnUpdate(), battleground_isle_of_conquest::OnUpdate(), battleground_twin_peaks::OnUpdate(), battleground_warsong_gulch::OnUpdate(), boss_high_inquisitor_fairbanks::Reset(), boss_scarlet_commander_mograine::Reset(), boss_high_inquisitor_whitemane::Reset(), Reset(), battleground_eye_of_the_storm::ResetAssaultDebuff(), battleground_twin_peaks::ResetAssaultDebuff(), battleground_warsong_gulch::ResetAssaultDebuff(), FleeingMovementGenerator::SetTargetLocation(), Group::StartLeaderOfflineTimer(), GameObjectType::Transport::Transport(), MMAP::DynamicTileBuilder::Update(), GameObjectType::Transport::Update(), GameObjectType::ControlZone::Update(), Transport::Update(), DynTreeImpl::update(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), and WaypointMovementGenerator< T >::UpdateTimer().

◆ Reset() [2/2]

void TimeTracker::Reset ( Milliseconds  expiry)
inline

Definition at line 141 of file Timer.h.

References _expiryTime.

◆ Update() [1/2]

◆ Update() [2/2]

void TimeTracker::Update ( Milliseconds  diff)
inline

Definition at line 126 of file Timer.h.

References _expiryTime.

Member Data Documentation

◆ _expiryTime

Milliseconds TimeTracker::_expiryTime
private

Definition at line 152 of file Timer.h.

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


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