TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SpellCastTargets Class Reference

#include <SpellDefines.h>

Public Member Functions

 SpellCastTargets ()
 
 ~SpellCastTargets ()
 
void Read (ByteBuffer &data, Unit *caster)
 
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 GetElevation () const
 
void SetElevation (float elevation)
 
float GetSpeed () const
 
void SetSpeed (float speed)
 
float GetDist2d () const
 
float GetSpeedXY () const
 
float GetSpeedZ () const
 
void Update (WorldObject *caster)
 

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_elevation
 
float m_speed
 
std::string m_strTarget
 

Detailed Description

Definition at line 222 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ SpellCastTargets()

SpellCastTargets::SpellCastTargets ( )

Definition at line 118 of file Spell.cpp.

◆ ~SpellCastTargets()

SpellCastTargets::~SpellCastTargets ( )

Definition at line 128 of file Spell.cpp.

Member Function Documentation

◆ GetCorpseTarget()

Corpse * SpellCastTargets::GetCorpseTarget ( ) const

Definition at line 281 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 273 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 286 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetDst()

SpellDestination const * SpellCastTargets::GetDst ( ) const

Definition at line 374 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetDstPos()

WorldLocation const * SpellCastTargets::GetDstPos ( ) const

Definition at line 379 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetElevation()

float SpellCastTargets::GetElevation ( ) const
inline

Definition at line 281 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetGOTarget()

GameObject * SpellCastTargets::GetGOTarget ( ) const

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

+ Here is the call graph for this function:

◆ GetItemTarget()

Item * SpellCastTargets::GetItemTarget ( ) const
inline

Definition at line 252 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetEntry()

uint32 SpellCastTargets::GetItemTargetEntry ( ) const
inline

Definition at line 253 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetItemTargetGUID()

ObjectGuid SpellCastTargets::GetItemTargetGUID ( ) const
inline

Definition at line 251 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetObjectTarget()

WorldObject * SpellCastTargets::GetObjectTarget ( ) const

Definition at line 289 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetObjectTargetGUID()

ObjectGuid SpellCastTargets::GetObjectTargetGUID ( ) const

Definition at line 294 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetSpeed()

float SpellCastTargets::GetSpeed ( ) const
inline

Definition at line 283 of file SpellDefines.h.

◆ GetSpeedXY()

float SpellCastTargets::GetSpeedXY ( ) const
inline

Definition at line 287 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSpeedZ()

float SpellCastTargets::GetSpeedZ ( ) const
inline

Definition at line 288 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetSrc()

SpellDestination const * SpellCastTargets::GetSrc ( ) const

Definition at line 335 of file Spell.cpp.

◆ GetSrcPos()

Position const * SpellCastTargets::GetSrcPos ( ) const

Definition at line 340 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ GetTargetMask()

uint32 SpellCastTargets::GetTargetMask ( ) const
inline

Definition at line 231 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ GetUnitTarget()

Unit * SpellCastTargets::GetUnitTarget ( ) const

Definition at line 229 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 221 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 436 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 431 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 279 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ ModDst() [1/2]

void SpellCastTargets::ModDst ( Position const &  pos)

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

◆ ModSrc()

void SpellCastTargets::ModSrc ( Position const &  pos)

Definition at line 363 of file Spell.cpp.

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

◆ Read()

void SpellCastTargets::Read ( ByteBuffer data,
Unit caster 
)

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

+ Here is the caller graph for this function:

◆ RemoveObjectTarget()

void SpellCastTargets::RemoveObjectTarget ( )

Definition at line 299 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 369 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 384 of file Spell.cpp.

+ Here is the caller graph for this function:

◆ SetDst() [2/5]

void SpellCastTargets::SetDst ( Position const &  pos)

Definition at line 390 of file Spell.cpp.

◆ SetDst() [3/5]

void SpellCastTargets::SetDst ( SpellCastTargets const &  spellTargets)

Definition at line 408 of file Spell.cpp.

◆ SetDst() [4/5]

void SpellCastTargets::SetDst ( SpellDestination const &  spellDest)

Definition at line 402 of file Spell.cpp.

◆ SetDst() [5/5]

void SpellCastTargets::SetDst ( WorldObject const &  wObj)

Definition at line 396 of file Spell.cpp.

◆ SetElevation()

void SpellCastTargets::SetElevation ( float  elevation)
inline

Definition at line 282 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetGOTarget()

void SpellCastTargets::SetGOTarget ( GameObject target)

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

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

◆ SetSpeed()

void SpellCastTargets::SetSpeed ( float  speed)
inline

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

+ Here is the caller graph for this function:

◆ SetSrc() [2/3]

void SpellCastTargets::SetSrc ( Position const &  pos)

Definition at line 351 of file Spell.cpp.

◆ SetSrc() [3/3]

void SpellCastTargets::SetSrc ( WorldObject const &  wObj)

Definition at line 357 of file Spell.cpp.

◆ SetTargetFlag()

void SpellCastTargets::SetTargetFlag ( SpellCastTargetFlags  flag)
inline

Definition at line 234 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTargetMask()

void SpellCastTargets::SetTargetMask ( uint32  newMask)
inline

Definition at line 232 of file SpellDefines.h.

◆ SetTradeItemTarget()

void SpellCastTargets::SetTradeItemTarget ( Player caster)

Definition at line 317 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 237 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 441 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 326 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 183 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 305 of file SpellDefines.h.

◆ m_elevation

float SpellCastTargets::m_elevation
private

Definition at line 307 of file SpellDefines.h.

◆ m_itemTarget

Item* SpellCastTargets::m_itemTarget
private

Definition at line 297 of file SpellDefines.h.

◆ m_itemTargetEntry

uint32 SpellCastTargets::m_itemTargetEntry
private

Definition at line 302 of file SpellDefines.h.

◆ m_itemTargetGUID

ObjectGuid SpellCastTargets::m_itemTargetGUID
private

Definition at line 301 of file SpellDefines.h.

◆ m_objectTarget

WorldObject* SpellCastTargets::m_objectTarget
private

Definition at line 296 of file SpellDefines.h.

◆ m_objectTargetGUID

ObjectGuid SpellCastTargets::m_objectTargetGUID
private

Definition at line 300 of file SpellDefines.h.

◆ m_speed

float SpellCastTargets::m_speed
private

Definition at line 307 of file SpellDefines.h.

◆ m_src

SpellDestination SpellCastTargets::m_src
private

Definition at line 304 of file SpellDefines.h.

◆ m_strTarget

std::string SpellCastTargets::m_strTarget
private

Definition at line 308 of file SpellDefines.h.

◆ m_targetMask

uint32 SpellCastTargets::m_targetMask
private

Definition at line 293 of file SpellDefines.h.


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