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

#include <GridNotifiers.h>

Public Member Functions

 CreatureWorker (WorldObject const *searcher, Do &_do)
 
void Visit (CreatureMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

WorldObject const_searcher
 
Do & i_do
 

Constructor & Destructor Documentation

template<class Do>
Trinity::CreatureWorker< Do >::CreatureWorker ( WorldObject const searcher,
Do &  _do 
)
inline
480  : _searcher(searcher), i_do(_do) { }
Do & i_do
Definition: GridNotifiers.h:477
WorldObject const * _searcher
Definition: GridNotifiers.h:476

Member Function Documentation

template<class Do>
void Trinity::CreatureWorker< Do >::Visit ( CreatureMapType m)
inline
483  {
484  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
485  if (itr->GetSource()->IsInPhase(_searcher))
486  i_do(itr->GetSource());
487  }
Do & i_do
Definition: GridNotifiers.h:477
WorldObject const * _searcher
Definition: GridNotifiers.h:476
Definition: LinkedList.h:141
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::CreatureWorker< Do >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
489 { }

Member Data Documentation

template<class Do>
WorldObject const* Trinity::CreatureWorker< Do >::_searcher
template<class Do>
Do& Trinity::CreatureWorker< Do >::i_do

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