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

#include <GridNotifiers.h>

Public Member Functions

 GridUpdater (GridType &grid, uint32 diff)
 
template<class T >
void updateObjects (GridRefManager< T > &m)
 
void Visit (PlayerMapType &m)
 
void Visit (CreatureMapType &m)
 
void Visit (GameObjectMapType &m)
 
void Visit (DynamicObjectMapType &m)
 
void Visit (CorpseMapType &m)
 
void Visit (AreaTriggerMapType &m)
 

Public Attributes

GridTypei_grid
 
uint32 i_timeDiff
 

Constructor & Destructor Documentation

Trinity::GridUpdater::GridUpdater ( GridType grid,
uint32  diff 
)
inline
110 : i_grid(grid), i_timeDiff(diff) { }
GridType & i_grid
Definition: GridNotifiers.h:108
uint32 i_timeDiff
Definition: GridNotifiers.h:109

Member Function Documentation

template<class T >
void Trinity::GridUpdater::updateObjects ( GridRefManager< T > &  m)
inline
113  {
114  for (typename GridRefManager<T>::iterator iter = m.begin(); iter != m.end(); ++iter)
115  iter->GetSource()->Update(i_timeDiff);
116  }
Definition: GridReference.h:25
iterator begin()
Definition: GridRefManager.h:36
uint32 i_timeDiff
Definition: GridNotifiers.h:109
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

void Trinity::GridUpdater::Visit ( PlayerMapType m)
inline
118 { updateObjects<Player>(m); }
void Trinity::GridUpdater::Visit ( CreatureMapType m)
inline
119 { updateObjects<Creature>(m); }
void Trinity::GridUpdater::Visit ( GameObjectMapType m)
inline
120 { updateObjects<GameObject>(m); }
void Trinity::GridUpdater::Visit ( DynamicObjectMapType m)
inline
121 { updateObjects<DynamicObject>(m); }
void Trinity::GridUpdater::Visit ( CorpseMapType m)
inline
122 { updateObjects<Corpse>(m); }
void Trinity::GridUpdater::Visit ( AreaTriggerMapType m)
inline
123 { updateObjects<AreaTrigger>(m); }

Member Data Documentation

GridType& Trinity::GridUpdater::i_grid
uint32 Trinity::GridUpdater::i_timeDiff

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