Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SpellCastTargets Class Reference

#include <Spell.h>

Collaboration diagram for SpellCastTargets:

Public Member Functions

CorpseGetCorpseTarget () const
uint64 GetCorpseTargetGUID () const
float GetDist2d () const
SpellDestination const * GetDst () const
WorldLocation const * GetDstPos () const
float GetElevation () const
GameObjectGetGOTarget () const
uint64 GetGOTargetGUID () const
ItemGetItemTarget () const
uint32 GetItemTargetEntry () const
uint64 GetItemTargetGUID () const
WorldObjectGetObjectTarget () const
uint64 GetObjectTargetGUID () const
float GetSpeed () const
float GetSpeedXY () const
float GetSpeedZ () const
SpellDestination const * GetSrc () const
Position const * GetSrcPos () const
uint32 GetTargetMask () const
std::string const & GetTargetString ()
UnitGetUnitTarget () const
uint64 GetUnitTargetGUID () const
bool HasDst () const
bool HasSrc () const
bool HasTraj () const
void Initialize (uint32 flags, uint64 target, uint64 itemTarget, uint64 dest, WorldLocation destPos, uint64 src, WorldLocation srcPos)
void ModDst (Position const &pos)
void ModSrc (Position const &pos)
void OutDebug () const
void Read (ByteBuffer &data, Unit *caster)
void RemoveDst ()
void RemoveObjectTarget ()
void RemoveSrc ()
void SetDst (float x, float y, float z, float orientation, uint32 mapId=MAPID_INVALID)
void SetDst (Position const &pos)
void SetDst (SpellCastTargets const &spellTargets)
void SetDst (WorldObject const &wObj)
void SetElevation (float elevation)
void SetGOTarget (GameObject *target)
void SetItemTarget (Item *item)
void SetSpeed (float speed)
void SetSrc (float x, float y, float z)
void SetSrc (Position const &pos)
void SetSrc (WorldObject const &wObj)
void SetTargetFlag (SpellCastTargetFlags flag)
void SetTargetMask (uint32 newMask)
void SetTradeItemTarget (Player *caster)
void SetUnitTarget (Unit *target)
 SpellCastTargets ()
 SpellCastTargets (Unit *caster, uint32 targetMask, uint64 targetGuid, uint64 itemTargetGuid, uint64 srcTransportGuid, uint64 destTransportGuid, Position srcPos, Position destPos, float elevation, float missileSpeed, std::string targetString)
void Update (Unit *caster)
void UpdateTradeSlotItem ()
void Write (ByteBuffer &data)
 ~SpellCastTargets ()

Private Attributes

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

Detailed Description

Definition at line 143 of file Spell.h.

Constructor & Destructor Documentation

◆ SpellCastTargets() [1/2]

SpellCastTargets::SpellCastTargets ( )

◆ SpellCastTargets() [2/2]

SpellCastTargets::SpellCastTargets ( Unit * caster,
uint32 targetMask,
uint64 targetGuid,
uint64 itemTargetGuid,
uint64 srcTransportGuid,
uint64 destTransportGuid,
Position srcPos,
Position destPos,
float elevation,
float missileSpeed,
std::string targetString )

◆ ~SpellCastTargets()

SpellCastTargets::~SpellCastTargets ( )

Definition at line 115 of file Spell.cpp.

Member Function Documentation

◆ GetCorpseTarget()

Corpse * SpellCastTargets::GetCorpseTarget ( ) const

Definition at line 279 of file Spell.cpp.

References m_objectTarget.

◆ GetCorpseTargetGUID()

uint64 SpellCastTargets::GetCorpseTargetGUID ( ) const

Definition at line 268 of file Spell.cpp.

References GUID_HIPART(), HIGHGUID_CORPSE, and m_objectTargetGUID.

◆ GetDist2d()

float SpellCastTargets::GetDist2d ( ) const
inline

Definition at line 225 of file Spell.h.

References m_dst, and m_src.

◆ GetDst()

SpellDestination const * SpellCastTargets::GetDst ( ) const

Definition at line 378 of file Spell.cpp.

References m_dst.

◆ GetDstPos()

◆ GetElevation()

float SpellCastTargets::GetElevation ( ) const
inline

Definition at line 220 of file Spell.h.

References m_elevation.

◆ GetGOTarget()

GameObject * SpellCastTargets::GetGOTarget ( ) const

Definition at line 251 of file Spell.cpp.

References m_objectTarget.

Referenced by HookMgr::OnUse().

◆ GetGOTargetGUID()

uint64 SpellCastTargets::GetGOTargetGUID ( ) const

◆ GetItemTarget()

Item * SpellCastTargets::GetItemTarget ( ) const
inline

Definition at line 193 of file Spell.h.

References m_itemTarget.

Referenced by HookMgr::OnUse().

◆ GetItemTargetEntry()

uint32 SpellCastTargets::GetItemTargetEntry ( ) const
inline

Definition at line 194 of file Spell.h.

References m_itemTargetEntry.

◆ GetItemTargetGUID()

uint64 SpellCastTargets::GetItemTargetGUID ( ) const
inline

Definition at line 192 of file Spell.h.

References m_itemTargetGUID.

◆ GetObjectTarget()

WorldObject * SpellCastTargets::GetObjectTarget ( ) const

Definition at line 286 of file Spell.cpp.

References m_objectTarget.

Referenced by Spell::InitExplicitTargets().

◆ GetObjectTargetGUID()

uint64 SpellCastTargets::GetObjectTargetGUID ( ) const

Definition at line 291 of file Spell.cpp.

References m_objectTargetGUID.

◆ GetSpeed()

float SpellCastTargets::GetSpeed ( ) const
inline

Definition at line 222 of file Spell.h.

References m_speed.

◆ GetSpeedXY()

float SpellCastTargets::GetSpeedXY ( ) const
inline

◆ GetSpeedZ()

float SpellCastTargets::GetSpeedZ ( ) const
inline

◆ GetSrc()

SpellDestination const * SpellCastTargets::GetSrc ( ) const

Definition at line 332 of file Spell.cpp.

References m_src.

◆ GetSrcPos()

Position const * SpellCastTargets::GetSrcPos ( ) const

Definition at line 337 of file Spell.cpp.

References m_src.

Referenced by WorldSession::HandleUpdateMissileTrajectory().

◆ GetTargetMask()

uint32 SpellCastTargets::GetTargetMask ( ) const
inline

Definition at line 172 of file Spell.h.

References m_targetMask.

Referenced by HasDst(), and HasSrc().

◆ GetTargetString()

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

Definition at line 232 of file Spell.h.

References m_strTarget.

◆ GetUnitTarget()

Unit * SpellCastTargets::GetUnitTarget ( ) const

◆ GetUnitTargetGUID()

uint64 SpellCastTargets::GetUnitTargetGUID ( ) const

◆ HasDst()

◆ HasSrc()

bool SpellCastTargets::HasSrc ( ) const
inline

◆ HasTraj()

bool SpellCastTargets::HasTraj ( ) const
inline

◆ Initialize()

void SpellCastTargets::Initialize ( uint32 flags,
uint64 target,
uint64 itemTarget,
uint64 dest,
WorldLocation destPos,
uint64 src,
WorldLocation srcPos )
inline

Definition at line 153 of file Spell.h.

References m_dst, m_itemTargetGUID, m_objectTargetGUID, m_src, and m_targetMask.

Referenced by WorldSession::HandlePetCastSpellOpcode().

◆ ModDst()

void SpellCastTargets::ModDst ( Position const & pos)

◆ ModSrc()

void SpellCastTargets::ModSrc ( Position const & pos)

◆ OutDebug()

◆ Read()

◆ RemoveDst()

void SpellCastTargets::RemoveDst ( )

Definition at line 425 of file Spell.cpp.

References m_targetMask, and TARGET_FLAG_DEST_LOCATION.

◆ RemoveObjectTarget()

void SpellCastTargets::RemoveObjectTarget ( )

◆ RemoveSrc()

void SpellCastTargets::RemoveSrc ( )

Definition at line 373 of file Spell.cpp.

References m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.

◆ SetDst() [1/4]

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

◆ SetDst() [2/4]

void SpellCastTargets::SetDst ( Position const & pos)

Definition at line 394 of file Spell.cpp.

References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.

◆ SetDst() [3/4]

void SpellCastTargets::SetDst ( SpellCastTargets const & spellTargets)

Definition at line 406 of file Spell.cpp.

References m_dst, m_targetMask, SpellCastTargets(), and TARGET_FLAG_DEST_LOCATION.

◆ SetDst() [4/4]

void SpellCastTargets::SetDst ( WorldObject const & wObj)

Definition at line 400 of file Spell.cpp.

References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.

◆ SetElevation()

void SpellCastTargets::SetElevation ( float elevation)
inline

◆ SetGOTarget()

void SpellCastTargets::SetGOTarget ( GameObject * target)

◆ SetItemTarget()

void SpellCastTargets::SetItemTarget ( Item * item)

◆ SetSpeed()

void SpellCastTargets::SetSpeed ( float speed)
inline

◆ SetSrc() [1/3]

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

Definition at line 342 of file Spell.cpp.

References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.

◆ SetSrc() [2/3]

void SpellCastTargets::SetSrc ( Position const & pos)

Definition at line 348 of file Spell.cpp.

References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.

◆ SetSrc() [3/3]

void SpellCastTargets::SetSrc ( WorldObject const & wObj)

Definition at line 354 of file Spell.cpp.

References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.

◆ SetTargetFlag()

void SpellCastTargets::SetTargetFlag ( SpellCastTargetFlags flag)
inline

Definition at line 175 of file Spell.h.

References m_targetMask.

◆ SetTargetMask()

void SpellCastTargets::SetTargetMask ( uint32 newMask)
inline

Definition at line 173 of file Spell.h.

References m_targetMask.

◆ SetTradeItemTarget()

void SpellCastTargets::SetTradeItemTarget ( Player * caster)

◆ SetUnitTarget()

◆ Update()

◆ UpdateTradeSlotItem()

void SpellCastTargets::UpdateTradeSlotItem ( )

◆ Write()

Member Data Documentation

◆ m_dst

SpellDestination SpellCastTargets::m_dst
private

◆ m_elevation

float SpellCastTargets::m_elevation
private

◆ m_itemTarget

Item* SpellCastTargets::m_itemTarget
private

◆ m_itemTargetEntry

uint32 SpellCastTargets::m_itemTargetEntry
private

◆ m_itemTargetGUID

uint64 SpellCastTargets::m_itemTargetGUID
private

◆ m_objectTarget

◆ m_objectTargetGUID

◆ m_speed

float SpellCastTargets::m_speed
private

◆ m_src

SpellDestination SpellCastTargets::m_src
private

◆ m_strTarget

std::string SpellCastTargets::m_strTarget
private

Definition at line 250 of file Spell.h.

Referenced by GetTargetString(), OutDebug(), Read(), SpellCastTargets(), SpellCastTargets(), and Write().

◆ m_targetMask


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