#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]
305{
307 {
308 Creature* target = iter->GetSource();
310 continue;
311
313 continue;
314
315
318 if ((*i)->m_seer == target)
320 }
321}
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:1903
bool HasSharedVision() const
Definition: Unit.h:1906
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]
324{
326 {
329 continue;
330
332 continue;
333
334
336 if (caster && caster->
m_seer == target)
338 }
339}
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:2296
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]
280{
282 {
283 Player* target = iter->GetSource();
285 continue;
286
288 continue;
289
290
292 {
295 if ((*i)->m_seer == target)
297 }
298
301 }
302}
Vehicle * GetVehicle() const
Definition: Unit.h:2368
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 |