#include "GridNotifiers.h"
◆ MessageDistDelivererToHostile()
Acore::MessageDistDelivererToHostile::MessageDistDelivererToHostile |
( |
Unit * |
src, |
|
|
WorldPacket * |
msg, |
|
|
float |
dist |
|
) |
| |
|
inline |
137 {
138 }
uint32 GetPhaseMask() const
Definition: Object.h:434
uint32 i_phaseMask
Definition: GridNotifiers.h:133
float i_distSq
Definition: GridNotifiers.h:134
Unit * i_source
Definition: GridNotifiers.h:131
WorldPacket * i_message
Definition: GridNotifiers.h:132
◆ SendPacket()
void Acore::MessageDistDelivererToHostile::SendPacket |
( |
Player * |
player | ) |
|
|
inline |
◆ Visit() [1/4]
306{
308 {
309 Creature* target = iter->GetSource();
311 continue;
312
314 continue;
315
316
319 if ((*i)->m_seer == target)
321 }
322}
Definition: LinkedList.h:139
Definition: Creature.h:46
bool InSamePhase(WorldObject const *obj) const
Definition: Object.h:435
float GetExactDist2dSq(const float x, const float y) const
Definition: Position.h:157
SharedVisionList const & GetSharedVisionList()
Definition: Unit.h:1901
bool HasSharedVision() const
Definition: Unit.h:1904
iterator begin()
Definition: GridRefMgr.h:35
iterator end()
Definition: GridRefMgr.h:36
void SendPacket(Player *player)
Definition: GridNotifiers.h:144
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]
325{
327 {
330 continue;
331
333 continue;
334
335
337 if (caster && caster->
m_seer == target)
339 }
340}
Definition: DynamicObject.h:35
Unit * GetCaster() const
Definition: DynamicObject.h:55
ObjectGuid GetCasterGUID() const
Definition: DynamicObject.h:59
bool IsPlayer() const
Definition: ObjectGuid.h:170
Definition: Player.h:1056
WorldObject * m_seer
Definition: Player.h:2293
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]
281{
283 {
284 Player* target = iter->GetSource();
286 continue;
287
289 continue;
290
291
293 {
296 if ((*i)->m_seer == target)
298 }
299
302 }
303}
Vehicle * GetVehicle() const
Definition: Unit.h:2366
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 |