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

#include <GridNotifiers.h>

Public Member Functions

 CreatureLastSearcher (WorldObject const *searcher, Creature *&result, Check &check)
 
void Visit (CreatureMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

WorldObject const_searcher
 
Creature *& i_object
 
Check & i_check
 

Constructor & Destructor Documentation

template<class Check>
Trinity::CreatureLastSearcher< Check >::CreatureLastSearcher ( WorldObject const searcher,
Creature *&  result,
Check &  check 
)
inline
451  : _searcher(searcher), i_object(result), i_check(check) { }
Check & i_check
Definition: GridNotifiers.h:448
Creature *& i_object
Definition: GridNotifiers.h:447
WorldObject const * _searcher
Definition: GridNotifiers.h:446
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::CreatureLastSearcher< Check >::Visit ( CreatureMapType m)
499 {
500  for (CreatureMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
501  {
502  if (!itr->GetSource()->IsInPhase(_searcher))
503  continue;
504 
505  if (i_check(itr->GetSource()))
506  i_object = itr->GetSource();
507  }
508 }
Check & i_check
Definition: GridNotifiers.h:448
Creature *& i_object
Definition: GridNotifiers.h:447
Definition: LinkedList.h:141
WorldObject const * _searcher
Definition: GridNotifiers.h:446
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

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

Member Data Documentation

template<class Check>
WorldObject const* Trinity::CreatureLastSearcher< Check >::_searcher
template<class Check>
Check& Trinity::CreatureLastSearcher< Check >::i_check
template<class Check>
Creature* & Trinity::CreatureLastSearcher< Check >::i_object

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