AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::GameObjectListSearcher< Check > Struct Template Reference

#include "GridNotifiers.h"

Inheritance diagram for Acore::GameObjectListSearcher< Check >:
Acore::ContainerInserter< GameObject * >

Public Member Functions

template<typename Container >
 GameObjectListSearcher (WorldObject const *searcher, Container &container, Check &check)
 
void Visit (GameObjectMapType &m)
 
template<class NOT_INTERESTED >
void Visit (GridRefMgr< NOT_INTERESTED > &)
 

Public Attributes

uint32 i_phaseMask
 
Check & i_check
 

Additional Inherited Members

- Protected Member Functions inherited from Acore::ContainerInserter< GameObject * >
 ContainerInserter (T &ref_)
 
void Insert (GameObject * type)
 

Detailed Description

template<class Check>
struct Acore::GameObjectListSearcher< Check >

Constructor & Destructor Documentation

◆ GameObjectListSearcher()

template<class Check >
template<typename Container >
Acore::GameObjectListSearcher< Check >::GameObjectListSearcher ( WorldObject const *  searcher,
Container container,
Check &  check 
)
inline
353 : ContainerInserter<GameObject*>(container),
354 i_phaseMask(searcher->GetPhaseMask()), i_check(check) { }
Check & i_check
Definition: GridNotifiers.h:349
uint32 i_phaseMask
Definition: GridNotifiers.h:348

Member Function Documentation

◆ Visit() [1/2]

template<class Check >
void Acore::GameObjectListSearcher< Check >::Visit ( GameObjectMapType m)
340{
341 for (GameObjectMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
342 if (itr->GetSource()->InSamePhase(i_phaseMask))
343 if (i_check(itr->GetSource()))
344 Insert(itr->GetSource());
345}
Definition: LinkedList.h:139
iterator begin()
Definition: GridRefMgr.h:35
iterator end()
Definition: GridRefMgr.h:36
void Insert(GameObject * type)
Definition: GridNotifiers.h:188

References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), and Acore::Insert().

◆ Visit() [2/2]

template<class Check >
template<class NOT_INTERESTED >
void Acore::GameObjectListSearcher< Check >::Visit ( GridRefMgr< NOT_INTERESTED > &  )
inline
358{}

Member Data Documentation

◆ i_check

template<class Check >
Check& Acore::GameObjectListSearcher< Check >::i_check

◆ i_phaseMask

template<class Check >
uint32 Acore::GameObjectListSearcher< Check >::i_phaseMask