TrinityCore
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 330 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ SpellCastTargets() [1/2]

SpellCastTargets::SpellCastTargets ( )

Definition at line 130 of file Spell.cpp.

◆ SpellCastTargets() [2/2]

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

Definition at line 135 of file Spell.cpp.

+ Here is the call graph for this function:

◆ ~SpellCastTargets()

SpellCastTargets::~SpellCastTargets ( )

Definition at line 174 of file Spell.cpp.

Member Function Documentation

◆ GetCorpseTarget()

Corpse * SpellCastTargets::GetCorpseTarget ( ) const

Definition at line 270 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 262 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 394 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetDst()

SpellDestination const * SpellCastTargets::GetDst ( ) const

Definition at line 363 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetDstPos()

WorldLocation const * SpellCastTargets::GetDstPos ( ) const

Definition at line 368 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetGOTarget()

GameObject * SpellCastTargets::GetGOTarget ( ) const

Definition at line 244 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 236 of file Spell.cpp.

+ Here is the call graph for this function:

◆ GetItemTarget()

Item * SpellCastTargets::GetItemTarget ( ) const
inline

Definition at line 360 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetEntry()

uint32 SpellCastTargets::GetItemTargetEntry ( ) const
inline

Definition at line 361 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetGUID()

ObjectGuid SpellCastTargets::GetItemTargetGUID ( ) const
inline

Definition at line 359 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetObjectTarget()

WorldObject * SpellCastTargets::GetObjectTarget ( ) const

Definition at line 278 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetObjectTargetGUID()

ObjectGuid SpellCastTargets::GetObjectTargetGUID ( ) const

Definition at line 283 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetPitch()

float SpellCastTargets::GetPitch ( ) const
inline

Definition at line 389 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSpeed()

float SpellCastTargets::GetSpeed ( ) const
inline

Definition at line 391 of file SpellDefines.h.

◆ GetSpeedXY()

float SpellCastTargets::GetSpeedXY ( ) const
inline

Definition at line 395 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSpeedZ()

float SpellCastTargets::GetSpeedZ ( ) const
inline

Definition at line 396 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSrc()

SpellDestination const * SpellCastTargets::GetSrc ( ) const

Definition at line 324 of file Spell.cpp.

◆ GetSrcPos()

Position const * SpellCastTargets::GetSrcPos ( ) const

Definition at line 329 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetTargetMask()

uint32 SpellCastTargets::GetTargetMask ( ) const
inline

Definition at line 339 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetTargetString()

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

Definition at line 399 of file SpellDefines.h.

◆ GetUnitTarget()

Unit * SpellCastTargets::GetUnitTarget ( ) const

Definition at line 218 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 210 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 425 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 420 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 387 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ ModDst() [1/2]

void SpellCastTargets::ModDst ( Position const &  pos)

Definition at line 403 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 409 of file Spell.cpp.

◆ ModSrc()

void SpellCastTargets::ModSrc ( Position const &  pos)

Definition at line 352 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 415 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ RemoveObjectTarget()

void SpellCastTargets::RemoveObjectTarget ( )

Definition at line 288 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 358 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 373 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetDst() [2/5]

void SpellCastTargets::SetDst ( Position const &  pos)

Definition at line 379 of file Spell.cpp.

◆ SetDst() [3/5]

void SpellCastTargets::SetDst ( SpellCastTargets const &  spellTargets)

Definition at line 397 of file Spell.cpp.

◆ SetDst() [4/5]

void SpellCastTargets::SetDst ( SpellDestination const &  spellDest)

Definition at line 391 of file Spell.cpp.

◆ SetDst() [5/5]

void SpellCastTargets::SetDst ( WorldObject const &  wObj)

Definition at line 385 of file Spell.cpp.

◆ SetGOTarget()

void SpellCastTargets::SetGOTarget ( GameObject target)

Definition at line 252 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 295 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 390 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetSpeed()

void SpellCastTargets::SetSpeed ( float  speed)
inline

Definition at line 392 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 334 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetSrc() [2/3]

void SpellCastTargets::SetSrc ( Position const &  pos)

Definition at line 340 of file Spell.cpp.

◆ SetSrc() [3/3]

void SpellCastTargets::SetSrc ( WorldObject const &  wObj)

Definition at line 346 of file Spell.cpp.

◆ SetTargetFlag()

void SpellCastTargets::SetTargetFlag ( SpellCastTargetFlags  flag)
inline

Definition at line 342 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTargetMask()

void SpellCastTargets::SetTargetMask ( uint32  newMask)
inline

Definition at line 340 of file SpellDefines.h.

◆ SetTradeItemTarget()

void SpellCastTargets::SetTradeItemTarget ( Player caster)

Definition at line 306 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 226 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 430 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 315 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 176 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 414 of file SpellDefines.h.

◆ m_itemTarget

Item* SpellCastTargets::m_itemTarget
private

Definition at line 406 of file SpellDefines.h.

◆ m_itemTargetEntry

uint32 SpellCastTargets::m_itemTargetEntry
private

Definition at line 411 of file SpellDefines.h.

◆ m_itemTargetGUID

ObjectGuid SpellCastTargets::m_itemTargetGUID
private

Definition at line 410 of file SpellDefines.h.

◆ m_objectTarget

WorldObject* SpellCastTargets::m_objectTarget
private

Definition at line 405 of file SpellDefines.h.

◆ m_objectTargetGUID

ObjectGuid SpellCastTargets::m_objectTargetGUID
private

Definition at line 409 of file SpellDefines.h.

◆ m_pitch

float SpellCastTargets::m_pitch
private

Definition at line 416 of file SpellDefines.h.

◆ m_speed

float SpellCastTargets::m_speed
private

Definition at line 416 of file SpellDefines.h.

◆ m_src

SpellDestination SpellCastTargets::m_src
private

Definition at line 413 of file SpellDefines.h.

◆ m_strTarget

std::string SpellCastTargets::m_strTarget
private

Definition at line 417 of file SpellDefines.h.

◆ m_targetMask

uint32 SpellCastTargets::m_targetMask
private

Definition at line 402 of file SpellDefines.h.


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