#include "GridNotifiers.h"
◆ MessageDistDelivererToHostile()
Acore::MessageDistDelivererToHostile::MessageDistDelivererToHostile |
( |
Unit * |
src, |
|
|
WorldPacket * |
msg, |
|
|
float |
dist |
|
) |
| |
|
inline |
140 {
141 }
uint32 GetPhaseMask() const
Definition: Object.h:451
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]
321{
323 {
324 Creature* target = iter->GetSource();
326 continue;
327
329 continue;
330
331
334 if ((*i)->m_seer == target)
336 }
337}
Definition: LinkedList.h:139
Definition: Creature.h:43
bool InSamePhase(WorldObject const *obj) const
Definition: Object.h:452
float GetExactDist2dSq(const float x, const float y) const
Definition: Position.h:156
SharedVisionList const & GetSharedVisionList()
Definition: Unit.h:1737
bool HasSharedVision() const
Definition: Unit.h:1740
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]
340{
342 {
345 continue;
346
348 continue;
349
350
352 if (caster && caster->
m_seer == target)
354 }
355}
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:1081
WorldObject * m_seer
Definition: Player.h:2334
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]
296{
298 {
299 Player* target = iter->GetSource();
301 continue;
302
304 continue;
305
306
308 {
311 if ((*i)->m_seer == target)
313 }
314
317 }
318}
Vehicle * GetVehicle() const
Definition: Unit.h:1786
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 |