#include "GridNotifiers.h"
◆ MessageDistDeliverer()
Acore::MessageDistDeliverer::MessageDistDeliverer |
( |
WorldObject const * |
src, |
|
|
WorldPacket const * |
msg, |
|
|
float |
dist, |
|
|
bool |
own_team_only = false , |
|
|
Player const * |
skipped = nullptr , |
|
|
bool |
req3dDist = false |
|
) |
| |
|
inline |
110 ,
teamId((own_team_only && src->IsPlayer()) ? src->ToPlayer()->GetTeamId() :
TEAM_NEUTRAL)
112 {
113 }
@ TEAM_NEUTRAL
Definition: SharedDefines.h:762
Player const * skipped_receiver
Definition: GridNotifiers.h:106
float i_distSq
Definition: GridNotifiers.h:104
WorldObject const * i_source
Definition: GridNotifiers.h:101
uint32 i_phaseMask
Definition: GridNotifiers.h:103
bool required3dDist
Definition: GridNotifiers.h:107
WorldPacket const * i_message
Definition: GridNotifiers.h:102
TeamId teamId
Definition: GridNotifiers.h:105
◆ SendPacket()
void Acore::MessageDistDeliverer::SendPacket |
( |
Player * |
player | ) |
|
|
inline |
◆ Visit() [1/4]
244{
246 {
247 Creature* target = iter->GetSource();
249 continue;
250
252 {
254 continue;
255 }
256 else
258 continue;
259
260
263 if ((*i)->m_seer == target)
265 }
266}
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
float GetExactDistSq(float x, float y, float z) const
Definition: Position.h:170
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:119
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), Position::GetExactDist2dSq(), Position::GetExactDistSq(), Unit::GetSharedVisionList(), Unit::HasSharedVision(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), required3dDist, and SendPacket().
◆ Visit() [2/4]
269{
271 {
274 continue;
275
276
278 continue;
279
281 {
283 continue;
284 }
285 else
287 continue;
288
289
291 if (caster && caster->
m_seer == target)
293 }
294}
Definition: DynamicObject.h:35
Unit * GetCaster() const
Definition: DynamicObject.h:55
ObjectGuid GetCasterGUID() const
Definition: DynamicObject.h:59
bool IsViewpoint() const
Definition: DynamicObject.h:61
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(), Position::GetExactDistSq(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), ObjectGuid::IsPlayer(), DynamicObject::IsViewpoint(), Player::m_seer, required3dDist, and SendPacket().
◆ Visit() [3/4]
template<class SKIP >
void Acore::MessageDistDeliverer::Visit |
( |
GridRefMgr< SKIP > & |
| ) |
|
|
inline |
◆ Visit() [4/4]
213{
215 {
216 Player* target = iter->GetSource();
218 continue;
219
221 {
223 continue;
224 }
225 else
227 continue;
228
229
231 {
234 if ((*i)->m_seer == target)
236 }
237
240 }
241}
Vehicle * GetVehicle() const
Definition: Unit.h:1673
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), Position::GetExactDist2dSq(), Position::GetExactDistSq(), Unit::GetSharedVisionList(), Unit::GetVehicle(), Unit::HasSharedVision(), i_distSq, i_phaseMask, i_source, WorldObject::InSamePhase(), Player::m_seer, required3dDist, and SendPacket().
◆ i_distSq
float Acore::MessageDistDeliverer::i_distSq |
◆ i_message
WorldPacket const* Acore::MessageDistDeliverer::i_message |
◆ i_phaseMask
uint32 Acore::MessageDistDeliverer::i_phaseMask |
◆ i_source
WorldObject const* Acore::MessageDistDeliverer::i_source |
◆ required3dDist
bool Acore::MessageDistDeliverer::required3dDist |
◆ skipped_receiver
Player const* Acore::MessageDistDeliverer::skipped_receiver |
◆ teamId
TeamId Acore::MessageDistDeliverer::teamId |