#include "GridNotifiers.h"
◆ MessageDistDelivererToHostile()
Acore::MessageDistDelivererToHostile::MessageDistDelivererToHostile |
( |
Unit * |
src, |
|
|
WorldPacket * |
msg, |
|
|
float |
dist |
|
) |
| |
|
inline |
140 {
141 }
uint32 GetPhaseMask() const
Definition: Object.h:446
uint32 i_phaseMask
Definition: GridNotifiers.h:136
float i_distSq
Definition: GridNotifiers.h:137
Unit * i_source
Definition: GridNotifiers.h:134
WorldPacket * i_message
Definition: GridNotifiers.h:135
◆ SendPacket()
void Acore::MessageDistDelivererToHostile::SendPacket |
( |
Player * |
player | ) |
|
|
inline |
◆ Visit() [1/4]
322{
324 {
325 Creature* target = iter->GetSource();
327 continue;
328
330 continue;
331
332
335 if ((*i)->m_seer == target)
337 }
338}
Definition: LinkedList.h:139
Definition: Creature.h:46
bool InSamePhase(WorldObject const *obj) const
Definition: Object.h:447
float GetExactDist2dSq(const float x, const float y) const
Definition: Position.h:157
SharedVisionList const & GetSharedVisionList()
Definition: Unit.h:1284
bool HasSharedVision() const
Definition: Unit.h:1287
iterator begin()
Definition: GridRefMgr.h:35
iterator end()
Definition: GridRefMgr.h:36
void SendPacket(Player *player)
Definition: GridNotifiers.h:147
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]
341{
343 {
346 continue;
347
349 continue;
350
351
353 if (caster && caster->
m_seer == target)
355 }
356}
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
Definition: Player.h:1064
WorldObject * m_seer
Definition: Player.h:2314
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]
297{
299 {
300 Player* target = iter->GetSource();
302 continue;
303
305 continue;
306
307
309 {
312 if ((*i)->m_seer == target)
314 }
315
318 }
319}
Vehicle * GetVehicle() const
Definition: Unit.h:1673
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 |