TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ObjectGridStoper Class Reference

#include <ObjectGridLoader.h>

Public Member Functions

void Visit (CreatureMapType &m)
 
template<class T >
void Visit (GridRefManager< T > &)
 

Member Function Documentation

void ObjectGridStoper::Visit ( CreatureMapType m)
215 {
216  // stop any fights at grid de-activation and remove dynobjects created at cast by creatures
217  for (CreatureMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
218  {
219  iter->GetSource()->RemoveAllDynObjects();
220  if (iter->GetSource()->IsInCombat())
221  {
222  iter->GetSource()->CombatStop();
223  iter->GetSource()->DeleteThreatList();
224  iter->GetSource()->AI()->EnterEvadeMode();
225  }
226  }
227 }
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 T >
void ObjectGridStoper::Visit ( GridRefManager< T > &  )
inline
63 { }

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