TrinityCore
Loading...
Searching...
No Matches
SpellCastTargets Class Reference

#include <SpellDefines.h>

Public Member Functions

 SpellCastTargets ()
 
 SpellCastTargets (Unit *caster, WorldPackets::Spells::SpellCastRequest const &spellCastRequest)
 
 ~SpellCastTargets ()
 
void Write (WorldPackets::Spells::SpellTargetData &data)
 
uint32 GetTargetMask () const
 
void SetTargetMask (uint32 newMask)
 
void SetTargetFlag (SpellCastTargetFlags flag)
 
ObjectGuid GetUnitTargetGUID () const
 
UnitGetUnitTarget () const
 
void SetUnitTarget (Unit *target)
 
ObjectGuid GetGOTargetGUID () const
 
GameObjectGetGOTarget () const
 
void SetGOTarget (GameObject *target)
 
ObjectGuid GetCorpseTargetGUID () const
 
CorpseGetCorpseTarget () const
 
WorldObjectGetObjectTarget () const
 
ObjectGuid GetObjectTargetGUID () const
 
void RemoveObjectTarget ()
 
ObjectGuid GetItemTargetGUID () const
 
ItemGetItemTarget () const
 
uint32 GetItemTargetEntry () const
 
void SetItemTarget (Item *item)
 
void SetTradeItemTarget (Player *caster)
 
void UpdateTradeSlotItem ()
 
SpellDestination const * GetSrc () const
 
Position const * GetSrcPos () const
 
void SetSrc (float x, float y, float z)
 
void SetSrc (Position const &pos)
 
void SetSrc (WorldObject const &wObj)
 
void ModSrc (Position const &pos)
 
void RemoveSrc ()
 
SpellDestination const * GetDst () const
 
WorldLocation const * GetDstPos () const
 
void SetDst (float x, float y, float z, float orientation, uint32 mapId=MAPID_INVALID)
 
void SetDst (Position const &pos)
 
void SetDst (WorldObject const &wObj)
 
void SetDst (SpellDestination const &spellDest)
 
void SetDst (SpellCastTargets const &spellTargets)
 
void ModDst (Position const &pos)
 
void ModDst (SpellDestination const &spellDest)
 
void RemoveDst ()
 
bool HasSrc () const
 
bool HasDst () const
 
bool HasTraj () const
 
float GetPitch () const
 
void SetPitch (float pitch)
 
float GetSpeed () const
 
void SetSpeed (float speed)
 
float GetDist2d () const
 
float GetSpeedXY () const
 
float GetSpeedZ () const
 
void Update (WorldObject *caster)
 
std::string GetTargetString () const
 

Private Attributes

uint32 m_targetMask
 
WorldObjectm_objectTarget
 
Itemm_itemTarget
 
ObjectGuid m_objectTargetGUID
 
ObjectGuid m_itemTargetGUID
 
uint32 m_itemTargetEntry
 
SpellDestination m_src
 
SpellDestination m_dst
 
float m_pitch
 
float m_speed
 
std::string m_strTarget
 

Detailed Description

Definition at line 371 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ SpellCastTargets() [1/2]

SpellCastTargets::SpellCastTargets ( )

Definition at line 98 of file Spell.cpp.

◆ SpellCastTargets() [2/2]

SpellCastTargets::SpellCastTargets ( Unit caster,
WorldPackets::Spells::SpellCastRequest const &  spellCastRequest 
)

Definition at line 103 of file Spell.cpp.

+ Here is the call graph for this function:

◆ ~SpellCastTargets()

SpellCastTargets::~SpellCastTargets ( )

Definition at line 142 of file Spell.cpp.

Member Function Documentation

◆ GetCorpseTarget()

Corpse * SpellCastTargets::GetCorpseTarget ( ) const

Definition at line 238 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCorpseTargetGUID()

ObjectGuid SpellCastTargets::GetCorpseTargetGUID ( ) const

Definition at line 230 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDist2d()

float SpellCastTargets::GetDist2d ( ) const
inline

Definition at line 435 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetDst()

SpellDestination const * SpellCastTargets::GetDst ( ) const

Definition at line 331 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetDstPos()

WorldLocation const * SpellCastTargets::GetDstPos ( ) const

Definition at line 336 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetGOTarget()

GameObject * SpellCastTargets::GetGOTarget ( ) const

Definition at line 212 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGOTargetGUID()

ObjectGuid SpellCastTargets::GetGOTargetGUID ( ) const

Definition at line 204 of file Spell.cpp.

+ Here is the call graph for this function:

◆ GetItemTarget()

Item * SpellCastTargets::GetItemTarget ( ) const
inline

Definition at line 401 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetEntry()

uint32 SpellCastTargets::GetItemTargetEntry ( ) const
inline

Definition at line 402 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetGUID()

ObjectGuid SpellCastTargets::GetItemTargetGUID ( ) const
inline

Definition at line 400 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetObjectTarget()

WorldObject * SpellCastTargets::GetObjectTarget ( ) const

Definition at line 246 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetObjectTargetGUID()

ObjectGuid SpellCastTargets::GetObjectTargetGUID ( ) const

Definition at line 251 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetPitch()

float SpellCastTargets::GetPitch ( ) const
inline

Definition at line 430 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSpeed()

float SpellCastTargets::GetSpeed ( ) const
inline

Definition at line 432 of file SpellDefines.h.

◆ GetSpeedXY()

float SpellCastTargets::GetSpeedXY ( ) const
inline

Definition at line 436 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSpeedZ()

float SpellCastTargets::GetSpeedZ ( ) const
inline

Definition at line 437 of file SpellDefines.h.

◆ GetSrc()

SpellDestination const * SpellCastTargets::GetSrc ( ) const

Definition at line 292 of file Spell.cpp.

◆ GetSrcPos()

Position const * SpellCastTargets::GetSrcPos ( ) const

Definition at line 297 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetTargetMask()

uint32 SpellCastTargets::GetTargetMask ( ) const
inline

Definition at line 380 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetTargetString()

std::string SpellCastTargets::GetTargetString ( ) const
inline

Definition at line 440 of file SpellDefines.h.

◆ GetUnitTarget()

Unit * SpellCastTargets::GetUnitTarget ( ) const

Definition at line 186 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitTargetGUID()

ObjectGuid SpellCastTargets::GetUnitTargetGUID ( ) const

Definition at line 178 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasDst()

bool SpellCastTargets::HasDst ( ) const

Definition at line 393 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasSrc()

bool SpellCastTargets::HasSrc ( ) const

Definition at line 388 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasTraj()

bool SpellCastTargets::HasTraj ( ) const
inline

Definition at line 428 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ ModDst() [1/2]

void SpellCastTargets::ModDst ( Position const &  pos)

Definition at line 371 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModDst() [2/2]

void SpellCastTargets::ModDst ( SpellDestination const &  spellDest)

Definition at line 377 of file Spell.cpp.

◆ ModSrc()

void SpellCastTargets::ModSrc ( Position const &  pos)

Definition at line 320 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveDst()

void SpellCastTargets::RemoveDst ( )

Definition at line 383 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ RemoveObjectTarget()

void SpellCastTargets::RemoveObjectTarget ( )

Definition at line 256 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveSrc()

void SpellCastTargets::RemoveSrc ( )

Definition at line 326 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetDst() [1/5]

void SpellCastTargets::SetDst ( float  x,
float  y,
float  z,
float  orientation,
uint32  mapId = MAPID_INVALID 
)

Definition at line 341 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetDst() [2/5]

void SpellCastTargets::SetDst ( Position const &  pos)

Definition at line 347 of file Spell.cpp.

◆ SetDst() [3/5]

void SpellCastTargets::SetDst ( SpellCastTargets const &  spellTargets)

Definition at line 365 of file Spell.cpp.

◆ SetDst() [4/5]

void SpellCastTargets::SetDst ( SpellDestination const &  spellDest)

Definition at line 359 of file Spell.cpp.

◆ SetDst() [5/5]

void SpellCastTargets::SetDst ( WorldObject const &  wObj)

Definition at line 353 of file Spell.cpp.

◆ SetGOTarget()

void SpellCastTargets::SetGOTarget ( GameObject target)

Definition at line 220 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetItemTarget()

void SpellCastTargets::SetItemTarget ( Item item)

Definition at line 263 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPitch()

void SpellCastTargets::SetPitch ( float  pitch)
inline

Definition at line 431 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetSpeed()

void SpellCastTargets::SetSpeed ( float  speed)
inline

Definition at line 433 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetSrc() [1/3]

void SpellCastTargets::SetSrc ( float  x,
float  y,
float  z 
)

Definition at line 302 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetSrc() [2/3]

void SpellCastTargets::SetSrc ( Position const &  pos)

Definition at line 308 of file Spell.cpp.

◆ SetSrc() [3/3]

void SpellCastTargets::SetSrc ( WorldObject const &  wObj)

Definition at line 314 of file Spell.cpp.

◆ SetTargetFlag()

void SpellCastTargets::SetTargetFlag ( SpellCastTargetFlags  flag)
inline

Definition at line 383 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTargetMask()

void SpellCastTargets::SetTargetMask ( uint32  newMask)
inline

Definition at line 381 of file SpellDefines.h.

◆ SetTradeItemTarget()

void SpellCastTargets::SetTradeItemTarget ( Player caster)

Definition at line 274 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetUnitTarget()

void SpellCastTargets::SetUnitTarget ( Unit target)

Definition at line 194 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

void SpellCastTargets::Update ( WorldObject caster)

Definition at line 398 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateTradeSlotItem()

void SpellCastTargets::UpdateTradeSlotItem ( )

Definition at line 283 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Write()

void SpellCastTargets::Write ( WorldPackets::Spells::SpellTargetData data)

Definition at line 144 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dst

SpellDestination SpellCastTargets::m_dst
private

Definition at line 455 of file SpellDefines.h.

◆ m_itemTarget

Item* SpellCastTargets::m_itemTarget
private

Definition at line 447 of file SpellDefines.h.

◆ m_itemTargetEntry

uint32 SpellCastTargets::m_itemTargetEntry
private

Definition at line 452 of file SpellDefines.h.

◆ m_itemTargetGUID

ObjectGuid SpellCastTargets::m_itemTargetGUID
private

Definition at line 451 of file SpellDefines.h.

◆ m_objectTarget

WorldObject* SpellCastTargets::m_objectTarget
private

Definition at line 446 of file SpellDefines.h.

◆ m_objectTargetGUID

ObjectGuid SpellCastTargets::m_objectTargetGUID
private

Definition at line 450 of file SpellDefines.h.

◆ m_pitch

float SpellCastTargets::m_pitch
private

Definition at line 457 of file SpellDefines.h.

◆ m_speed

float SpellCastTargets::m_speed
private

Definition at line 457 of file SpellDefines.h.

◆ m_src

SpellDestination SpellCastTargets::m_src
private

Definition at line 454 of file SpellDefines.h.

◆ m_strTarget

std::string SpellCastTargets::m_strTarget
private

Definition at line 458 of file SpellDefines.h.

◆ m_targetMask

uint32 SpellCastTargets::m_targetMask
private

Definition at line 443 of file SpellDefines.h.


The documentation for this class was generated from the following files: