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

#include <GridNotifiers.h>

Public Member Functions

 PlayerLastSearcher (WorldObject const *searcher, Player *&result, Check &check)
 
void Visit (PlayerMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

WorldObject const_searcher
 
Player *& i_object
 
Check & i_check
 

Constructor & Destructor Documentation

template<class Check>
Trinity::PlayerLastSearcher< Check >::PlayerLastSearcher ( WorldObject const searcher,
Player *&  result,
Check &  check 
)
inline
531  : _searcher(searcher), i_object(result), i_check(check)
532  {
533  }
WorldObject const * _searcher
Definition: GridNotifiers.h:527
Check & i_check
Definition: GridNotifiers.h:529
Player *& i_object
Definition: GridNotifiers.h:528
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::PlayerLastSearcher< Check >::Visit ( PlayerMapType m)
550 {
551  for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
552  {
553  if (!itr->GetSource()->IsInPhase(_searcher))
554  continue;
555 
556  if (i_check(itr->GetSource()))
557  i_object = itr->GetSource();
558  }
559 }
WorldObject const * _searcher
Definition: GridNotifiers.h:527
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
Check & i_check
Definition: GridNotifiers.h:529
iterator end()
Definition: GridRefManager.h:37
Player *& i_object
Definition: GridNotifiers.h:528

+ Here is the call graph for this function:

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

Member Data Documentation

template<class Check>
WorldObject const* Trinity::PlayerLastSearcher< Check >::_searcher
template<class Check>
Check& Trinity::PlayerLastSearcher< Check >::i_check
template<class Check>
Player* & Trinity::PlayerLastSearcher< Check >::i_object

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