#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]
243{
245 {
246 Creature* target = iter->GetSource();
248 continue;
249
251 {
253 continue;
254 }
255 else
257 continue;
258
259
262 if ((*i)->m_seer == target)
264 }
265}
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
float GetExactDistSq(float x, float y, float z) const
Definition: Position.h:169
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: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]
268{
270 {
273 continue;
274
275
277 continue;
278
280 {
282 continue;
283 }
284 else
286 continue;
287
288
290 if (caster && caster->
m_seer == target)
292 }
293}
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:1081
WorldObject * m_seer
Definition: Player.h:2334
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]
212{
214 {
215 Player* target = iter->GetSource();
217 continue;
218
220 {
222 continue;
223 }
224 else
226 continue;
227
228
230 {
233 if ((*i)->m_seer == target)
235 }
236
239 }
240}
Vehicle * GetVehicle() const
Definition: Unit.h:1786
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 |