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

#include <GridNotifiers.h>

Public Member Functions

 WorldObjectLastSearcher (WorldObject const *searcher, WorldObject *&result, Check &check, 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

WorldObject const_searcher
 
WorldObject *& i_object
 
Check & i_check
 
uint32 i_mapTypeMask
 

Constructor & Destructor Documentation

template<class Check>
Trinity::WorldObjectLastSearcher< Check >::WorldObjectLastSearcher ( WorldObject const searcher,
WorldObject *&  result,
Check &  check,
uint32  mapTypeMask = GRID_MAP_TYPE_MASK_ALL 
)
inline
205  : _searcher(searcher), i_object(result), i_check(check), i_mapTypeMask(mapTypeMask) { }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
WorldObject *& i_object
Definition: GridNotifiers.h:200
Check & i_check
Definition: GridNotifiers.h:201
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( GameObjectMapType m)
185 {
187  return;
188 
189  for (GameObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
190  {
191  if (!itr->GetSource()->IsInPhase(_searcher))
192  continue;
193 
194  if (i_check(itr->GetSource()))
195  i_object = itr->GetSource();
196  }
197 }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: GridDefines.h:76
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( PlayerMapType m)
201 {
203  return;
204 
205  for (PlayerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
206  {
207  if (!itr->GetSource()->IsInPhase(_searcher))
208  continue;
209 
210  if (i_check(itr->GetSource()))
211  i_object = itr->GetSource();
212  }
213 }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
Definition: GridDefines.h:77
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( CreatureMapType m)
217 {
219  return;
220 
221  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
222  {
223  if (!itr->GetSource()->IsInPhase(_searcher))
224  continue;
225 
226  if (i_check(itr->GetSource()))
227  i_object = itr->GetSource();
228  }
229 }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
Definition: GridDefines.h:74
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( CorpseMapType m)
233 {
235  return;
236 
237  for (CorpseMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
238  {
239  if (!itr->GetSource()->IsInPhase(_searcher))
240  continue;
241 
242  if (i_check(itr->GetSource()))
243  i_object = itr->GetSource();
244  }
245 }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201
Definition: GridDefines.h:73

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( DynamicObjectMapType m)
249 {
251  return;
252 
253  for (DynamicObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
254  {
255  if (!itr->GetSource()->IsInPhase(_searcher))
256  continue;
257 
258  if (i_check(itr->GetSource()))
259  i_object = itr->GetSource();
260  }
261 }
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: GridDefines.h:75
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201

+ Here is the call graph for this function:

template<class Check >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( AreaTriggerMapType m)
265 {
267  return;
268 
269  for (AreaTriggerMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
270  {
271  if (!itr->GetSource()->IsInPhase(_searcher))
272  continue;
273 
274  if (i_check(itr->GetSource()))
275  i_object = itr->GetSource();
276  }
277 }
Definition: GridDefines.h:78
WorldObject const * _searcher
Definition: GridNotifiers.h:199
uint32 i_mapTypeMask
Definition: GridNotifiers.h:202
Definition: LinkedList.h:141
WorldObject *& i_object
Definition: GridNotifiers.h:200
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37
Check & i_check
Definition: GridNotifiers.h:201

+ Here is the call graph for this function:

template<class Check>
template<class NOT_INTERESTED >
void Trinity::WorldObjectLastSearcher< Check >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
214 { }

Member Data Documentation

template<class Check>
WorldObject const* Trinity::WorldObjectLastSearcher< Check >::_searcher
template<class Check>
Check& Trinity::WorldObjectLastSearcher< Check >::i_check
template<class Check>
uint32 Trinity::WorldObjectLastSearcher< Check >::i_mapTypeMask
template<class Check>
WorldObject* & Trinity::WorldObjectLastSearcher< Check >::i_object

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