TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::AIRelocationNotifier Struct Reference

#include <GridNotifiers.h>

Public Member Functions

 AIRelocationNotifier (Unit &unit)
 
template<class T >
void Visit (GridRefManager< T > &)
 
void Visit (CreatureMapType &)
 

Public Attributes

Uniti_unit
 
bool isCreature
 

Constructor & Destructor Documentation

Trinity::AIRelocationNotifier::AIRelocationNotifier ( Unit unit)
inlineexplicit
101 : i_unit(unit), isCreature(unit.GetTypeId() == TYPEID_UNIT) { }
Definition: ObjectGuid.h:32
TypeID GetTypeId() const
Definition: Object.h:113
Unit & i_unit
Definition: GridNotifiers.h:99
bool isCreature
Definition: GridNotifiers.h:100

Member Function Documentation

template<class T >
void Trinity::AIRelocationNotifier::Visit ( GridRefManager< T > &  )
inline
102 { }
void AIRelocationNotifier::Visit ( CreatureMapType m)
253 {
254  for (CreatureMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
255  {
256  Creature* c = iter->GetSource();
258  if (isCreature)
260  }
261 }
void CreatureUnitRelocationWorker(Creature *c, Unit *u)
Definition: GridNotifiers.cpp:129
Definition: Creature.h:467
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
Unit & i_unit
Definition: GridNotifiers.h:99
iterator end()
Definition: GridRefManager.h:37
bool isCreature
Definition: GridNotifiers.h:100

+ Here is the call graph for this function:

Member Data Documentation

Unit& Trinity::AIRelocationNotifier::i_unit
bool Trinity::AIRelocationNotifier::isCreature

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