#include "GridNotifiers.h"
◆ MessageDistDelivererToHostile()
Acore::MessageDistDelivererToHostile::MessageDistDelivererToHostile |
( |
Unit * |
src, |
|
|
WorldPacket * |
msg, |
|
|
float |
dist |
|
) |
| |
|
inline |
141 {
142 }
uint32 GetPhaseMask() const
Definition Object.h:513
uint32 i_phaseMask
Definition GridNotifiers.h:137
float i_distSq
Definition GridNotifiers.h:138
Unit * i_source
Definition GridNotifiers.h:135
WorldPacket * i_message
Definition GridNotifiers.h:136
◆ SendPacket()
void Acore::MessageDistDelivererToHostile::SendPacket |
( |
Player * |
player | ) |
|
|
inline |
◆ Visit() [1/4]
316{
318 {
319 Creature* target = iter->GetSource();
321 continue;
322
324 continue;
325
326
329 if ((*i)->m_seer == target)
331 }
332}
iterator begin()
Definition GridRefMgr.h:35
iterator end()
Definition GridRefMgr.h:36
Definition LinkedList.h:139
SharedVisionList const & GetSharedVisionList()
Definition Unit.h:1793
bool HasSharedVision() const
Definition Unit.h:1796
bool InSamePhase(WorldObject const *obj) const
Definition Object.h:514
void SendPacket(Player *player)
Definition GridNotifiers.h:148
float GetExactDist2dSq(const float x, const float y) const
Definition Position.h:161
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), Position::GetExactDist2dSq(), Unit::GetSharedVisionList(), Unit::HasSharedVision(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), and SendPacket().
◆ Visit() [2/4]
335{
337 {
340 continue;
341
343 continue;
344
345
347 if (caster && caster->
m_seer == target)
349 }
350}
Definition DynamicObject.h:35
Unit * GetCaster() const
Definition DynamicObject.h:55
ObjectGuid GetCasterGUID() const
Definition DynamicObject.h:59
bool IsPlayer() const
Definition ObjectGuid.h:168
WorldObject * m_seer
Definition Player.h:2345
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), DynamicObject::GetCaster(), DynamicObject::GetCasterGUID(), Position::GetExactDist2dSq(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), ObjectGuid::IsPlayer(), Player::m_seer, and SendPacket().
◆ Visit() [3/4]
template<class SKIP >
void Acore::MessageDistDelivererToHostile::Visit |
( |
GridRefMgr< SKIP > & |
| ) |
|
|
inline |
◆ Visit() [4/4]
291{
293 {
294 Player* target = iter->GetSource();
296 continue;
297
299 continue;
300
301
303 {
306 if ((*i)->m_seer == target)
308 }
309
312 }
313}
Vehicle * GetVehicle() const
Definition Unit.h:1842
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), Position::GetExactDist2dSq(), Unit::GetSharedVisionList(), Unit::GetVehicle(), Unit::HasSharedVision(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), Player::m_seer, and SendPacket().
◆ i_distSq
float Acore::MessageDistDelivererToHostile::i_distSq |
◆ i_message
WorldPacket* Acore::MessageDistDelivererToHostile::i_message |
◆ i_phaseMask
uint32 Acore::MessageDistDelivererToHostile::i_phaseMask |
◆ i_source
Unit* Acore::MessageDistDelivererToHostile::i_source |
The documentation for this struct was generated from the following files: