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

#include <GridNotifiers.h>

Public Member Functions

 CreatureRelocationNotifier (Creature &c)
 
template<class T >
void Visit (GridRefManager< T > &)
 
void Visit (CreatureMapType &)
 
void Visit (PlayerMapType &)
 

Public Attributes

Creaturei_creature
 

Constructor & Destructor Documentation

Trinity::CreatureRelocationNotifier::CreatureRelocationNotifier ( Creature c)
inline
78 : i_creature(c) { }
Creature & i_creature
Definition: GridNotifiers.h:77

Member Function Documentation

template<class T >
void Trinity::CreatureRelocationNotifier::Visit ( GridRefManager< T > &  )
inline
79 { }
void CreatureRelocationNotifier::Visit ( CreatureMapType m)
192 {
193  if (!i_creature.IsAlive())
194  return;
195 
196  for (CreatureMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
197  {
198  Creature* c = iter->GetSource();
200 
203  }
204 }
Definition: Object.h:74
void CreatureUnitRelocationWorker(Creature *c, Unit *u)
Definition: GridNotifiers.cpp:129
bool isNeedNotify(uint16 f) const
Definition: Object.h:575
Definition: Creature.h:467
Creature & i_creature
Definition: GridNotifiers.h:77
bool IsAlive() const
Definition: Unit.h:1692
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

void CreatureRelocationNotifier::Visit ( PlayerMapType m)
179 {
180  for (PlayerMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
181  {
182  Player* player = iter->GetSource();
183 
184  if (!player->m_seer->isNeedNotify(NOTIFY_VISIBILITY_CHANGED))
185  player->UpdateVisibilityOf(&i_creature);
186 
188  }
189 }
Definition: Object.h:74
void CreatureUnitRelocationWorker(Creature *c, Unit *u)
Definition: GridNotifiers.cpp:129
Creature & i_creature
Definition: GridNotifiers.h:77
Definition: LinkedList.h:141
iterator begin()
Definition: GridRefManager.h:36
iterator end()
Definition: GridRefManager.h:37

+ Here is the call graph for this function:

Member Data Documentation

Creature& Trinity::CreatureRelocationNotifier::i_creature

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