TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GridInfo Class Reference

#include <NGrid.h>

Public Member Functions

 GridInfo ()
 
 GridInfo (time_t expiry, bool unload=true)
 
const TimeTrackergetTimeTracker () const
 
bool getUnloadLock () const
 
void setUnloadExplicitLock (bool on)
 
void setUnloadReferenceLock (bool on)
 
void incUnloadActiveLock ()
 
void decUnloadActiveLock ()
 
void setTimer (const TimeTracker &pTimer)
 
void ResetTimeTracker (time_t interval)
 
void UpdateTimeTracker (time_t diff)
 
PeriodicTimergetRelocationTimer ()
 

Private Attributes

TimeTracker i_timer
 
PeriodicTimer vis_Update
 
uint16 i_unloadActiveLockCount: 16
 
bool i_unloadExplicitLock: 1
 
bool i_unloadReferenceLock: 1
 

Constructor & Destructor Documentation

GridInfo::GridInfo ( )
inline
bool i_unloadExplicitLock
Definition: NGrid.h:57
uint16 i_unloadActiveLockCount
Definition: NGrid.h:56
TimeTracker i_timer
Definition: NGrid.h:53
#define DEFAULT_VISIBILITY_NOTIFY_PERIOD
Definition: NGrid.h:30
int32 irand(int32 min, int32 max)
Definition: Random.cpp:39
bool i_unloadReferenceLock
Definition: NGrid.h:58
PeriodicTimer vis_Update
Definition: NGrid.h:54
GridInfo::GridInfo ( time_t  expiry,
bool  unload = true 
)
inline
bool i_unloadExplicitLock
Definition: NGrid.h:57
uint16 i_unloadActiveLockCount
Definition: NGrid.h:56
TimeTracker i_timer
Definition: NGrid.h:53
#define DEFAULT_VISIBILITY_NOTIFY_PERIOD
Definition: NGrid.h:30
int32 irand(int32 min, int32 max)
Definition: Random.cpp:39
bool i_unloadReferenceLock
Definition: NGrid.h:58
PeriodicTimer vis_Update
Definition: NGrid.h:54

Member Function Documentation

void GridInfo::decUnloadActiveLock ( )
inline
uint16 i_unloadActiveLockCount
Definition: NGrid.h:56

+ Here is the caller graph for this function:

PeriodicTimer& GridInfo::getRelocationTimer ( )
inline
51 { return vis_Update; }
PeriodicTimer vis_Update
Definition: NGrid.h:54

+ Here is the caller graph for this function:

const TimeTracker& GridInfo::getTimeTracker ( ) const
inline
41 { return i_timer; }
TimeTracker i_timer
Definition: NGrid.h:53

+ Here is the caller graph for this function:

bool GridInfo::getUnloadLock ( ) const
inline
bool i_unloadExplicitLock
Definition: NGrid.h:57
uint16 i_unloadActiveLockCount
Definition: NGrid.h:56
bool i_unloadReferenceLock
Definition: NGrid.h:58

+ Here is the caller graph for this function:

void GridInfo::incUnloadActiveLock ( )
inline
uint16 i_unloadActiveLockCount
Definition: NGrid.h:56

+ Here is the caller graph for this function:

void GridInfo::ResetTimeTracker ( time_t  interval)
inline
49 { i_timer.Reset(interval); }
TimeTracker i_timer
Definition: NGrid.h:53
void Reset(time_t interval)
Definition: Timer.h:119

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GridInfo::setTimer ( const TimeTracker pTimer)
inline
48 { i_timer = pTimer; }
TimeTracker i_timer
Definition: NGrid.h:53
void GridInfo::setUnloadExplicitLock ( bool  on)
inline
43 { i_unloadExplicitLock = on; }
bool i_unloadExplicitLock
Definition: NGrid.h:57

+ Here is the caller graph for this function:

void GridInfo::setUnloadReferenceLock ( bool  on)
inline
44 { i_unloadReferenceLock = on; }
bool i_unloadReferenceLock
Definition: NGrid.h:58

+ Here is the caller graph for this function:

void GridInfo::UpdateTimeTracker ( time_t  diff)
inline
50 { i_timer.Update(diff); }
TimeTracker i_timer
Definition: NGrid.h:53
void Update(time_t diff)
Definition: Timer.h:109

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

TimeTracker GridInfo::i_timer
private
uint16 GridInfo::i_unloadActiveLockCount
private
bool GridInfo::i_unloadExplicitLock
private
bool GridInfo::i_unloadReferenceLock
private
PeriodicTimer GridInfo::vis_Update
private

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