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

#include <GridNotifiers.h>

Public Member Functions

 GameObjectLastSearcher (WorldObject const *searcher, GameObject *&result, Check &check)
 
void Visit (GameObjectMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefManager< NOT_INTERESTED > &)
 

Public Attributes

WorldObject const_searcher
 
GameObject *& i_object
 
Check & i_check
 

Constructor & Destructor Documentation

template<class Check>
Trinity::GameObjectLastSearcher< Check >::GameObjectLastSearcher ( WorldObject const searcher,
GameObject *&  result,
Check &  check 
)
inline
330  : _searcher(searcher), i_object(result), i_check(check) { }
Check & i_check
Definition: GridNotifiers.h:327
GameObject *& i_object
Definition: GridNotifiers.h:326
WorldObject const * _searcher
Definition: GridNotifiers.h:325
T check(T value)
Definition: format.h:305

Member Function Documentation

template<class Check >
void Trinity::GameObjectLastSearcher< Check >::Visit ( GameObjectMapType m)
369 {
370  for (GameObjectMapType::iterator itr=m.begin(); itr != m.end(); ++itr)
371  {
372  if (!itr->GetSource()->IsInPhase(_searcher))
373  continue;
374 
375  if (i_check(itr->GetSource()))
376  i_object = itr->GetSource();
377  }
378 }
Check & i_check
Definition: GridNotifiers.h:327
GameObject *& i_object
Definition: GridNotifiers.h:326
WorldObject const * _searcher
Definition: GridNotifiers.h:325
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 Check>
template<class NOT_INTERESTED >
void Trinity::GameObjectLastSearcher< Check >::Visit ( GridRefManager< NOT_INTERESTED > &  )
inline
334 { }

Member Data Documentation

template<class Check>
WorldObject const* Trinity::GameObjectLastSearcher< Check >::_searcher
template<class Check>
Check& Trinity::GameObjectLastSearcher< Check >::i_check
template<class Check>
GameObject* & Trinity::GameObjectLastSearcher< Check >::i_object

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