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

#include <GridNotifiers.h>

Public Member Functions

 ObjectUpdater (const uint32 diff)
 
template<class T >
void Visit (GridRefManager< T > &m)
 
void Visit (PlayerMapType &)
 
void Visit (CorpseMapType &)
 

Public Attributes

uint32 i_timeDiff
 

Constructor & Destructor Documentation

Trinity::ObjectUpdater::ObjectUpdater ( const uint32  diff)
inlineexplicit
165 : i_timeDiff(diff) { }
uint32 i_timeDiff
Definition: GridNotifiers.h:164

Member Function Documentation

template<class T >
void ObjectUpdater::Visit ( GridRefManager< T > &  m)
344 {
345  for (typename GridRefManager<T>::iterator iter = m.begin(); iter != m.end(); ++iter)
346  if (iter->GetSource()->IsInWorld())
347  iter->GetSource()->Update(i_timeDiff);
348 }
Definition: GridReference.h:25
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
uint32 i_timeDiff
Definition: GridNotifiers.h:164

+ Here is the call graph for this function:

void Trinity::ObjectUpdater::Visit ( PlayerMapType )
inline
167 { }
void Trinity::ObjectUpdater::Visit ( CorpseMapType )
inline
168 { }

Member Data Documentation

uint32 Trinity::ObjectUpdater::i_timeDiff

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