TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::WorldObjectWorker< Do > Struct Template Reference

#include <GridNotifiers.h>

Public Member Functions

 WorldObjectWorker (WorldObject const *searcher, Do const &_do, uint32 mapTypeMask=GRID_MAP_TYPE_MASK_ALL)
 
void Visit (GameObjectMapType &m)
 
void Visit (PlayerMapType &m)
 
void Visit (CreatureMapType &m)
 
void Visit (CorpseMapType &m)
 
void Visit (DynamicObjectMapType &m)
 
void Visit (AreaTriggerMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

uint32 i_mapTypeMask
 
WorldObject const_searcher
 
Do consti_do
 

Constructor & Destructor Documentation

template<class Do>
Trinity::WorldObjectWorker< Do >::WorldObjectWorker ( WorldObject const searcher,
Do const _do,
uint32  mapTypeMask = GRID_MAP_TYPE_MASK_ALL 
)
inline
246  : i_mapTypeMask(mapTypeMask), _searcher(searcher), i_do(_do) { }
Do const & i_do
Definition: GridNotifiers.h:243
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
WorldObject const * _searcher
Definition: GridNotifiers.h:242

Member Function Documentation

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( GameObjectMapType m)
inline
249  {
251  return;
252  for (GameObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
253  if (itr->GetSource()->IsInPhase(_searcher))
254  i_do(itr->GetSource());
255  }
Do const & i_do
Definition: GridNotifiers.h:243
Definition: GridDefines.h:76
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( PlayerMapType m)
inline
258  {
260  return;
261  for (PlayerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
262  if (itr->GetSource()->IsInPhase(_searcher))
263  i_do(itr->GetSource());
264  }
Do const & i_do
Definition: GridNotifiers.h:243
Definition: GridDefines.h:77
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( CreatureMapType m)
inline
266  {
268  return;
269  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
270  if (itr->GetSource()->IsInPhase(_searcher))
271  i_do(itr->GetSource());
272  }
Do const & i_do
Definition: GridNotifiers.h:243
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
Definition: GridDefines.h:74
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( CorpseMapType m)
inline
275  {
277  return;
278  for (CorpseMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
279  if (itr->GetSource()->IsInPhase(_searcher))
280  i_do(itr->GetSource());
281  }
Do const & i_do
Definition: GridNotifiers.h:243
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Definition: GridDefines.h:73

+ Here is the call graph for this function:

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( DynamicObjectMapType m)
inline
284  {
286  return;
287  for (DynamicObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
288  if (itr->GetSource()->IsInPhase(_searcher))
289  i_do(itr->GetSource());
290  }
Do const & i_do
Definition: GridNotifiers.h:243
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: GridDefines.h:75
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Do>
void Trinity::WorldObjectWorker< Do >::Visit ( AreaTriggerMapType m)
inline
293  {
295  return;
296  for (AreaTriggerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
297  if (itr->GetSource()->IsInPhase(_searcher))
298  i_do(itr->GetSource());
299  }
Definition: GridDefines.h:78
Do const & i_do
Definition: GridNotifiers.h:243
uint32 i_mapTypeMask
Definition: GridNotifiers.h:241
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:242
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

template<class Do>
template<class NOT_INTERESTED >
void Trinity::WorldObjectWorker< Do >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
301 { }

Member Data Documentation

template<class Do>
WorldObject const* Trinity::WorldObjectWorker< Do >::_searcher
template<class Do>
Do const& Trinity::WorldObjectWorker< Do >::i_do
template<class Do>
uint32 Trinity::WorldObjectWorker< Do >::i_mapTypeMask

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