![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Spell.h"
Private Attributes | |
uint32 | m_targetMask |
WorldObject * | m_objectTarget |
Item * | m_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 |
SpellDestination | m_dstChannel |
ObjectGuid | m_objectTargetGUIDChannel |
SpellCastTargets::SpellCastTargets | ( | ) |
References m_itemTarget, m_itemTargetEntry, m_objectTarget, and m_targetMask.
SpellCastTargets::~SpellCastTargets | ( | ) |
Corpse * SpellCastTargets::GetCorpseTarget | ( | ) | const |
References m_objectTarget, and Object::ToCorpse().
Referenced by Spell::SelectEffectTypeImplicitTargets().
ObjectGuid SpellCastTargets::GetCorpseTargetGUID | ( | ) | const |
References Corpse, ObjectGuid::Empty, ObjectGuid::GetHigh(), and m_objectTargetGUID.
Referenced by Spell::CheckEffectTarget().
|
inline |
References SpellDestination::_position, Position::GetExactDist2d(), m_dst, and m_src.
Referenced by Spell::CalculateDelayMomentForDst(), and Spell::SelectImplicitTrajTargets().
SpellDestination const * SpellCastTargets::GetDst | ( | ) | const |
References m_dst.
Referenced by Spell::SelectImplicitDestDestTargets(), Spell::SelectImplicitTrajTargets(), and Spell::SelectSpellTargets().
SpellDestination const * SpellCastTargets::GetDstChannel | ( | ) | const |
WorldLocation const * SpellCastTargets::GetDstPos | ( | ) | const |
References SpellDestination::_position, and m_dst.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckCast(), Spell::CheckEffectTarget(), Spell::CheckRange(), SpellScript::GetExplTargetDest(), spell_vehicle_throw_passenger::HandleScript(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::SelectImplicitAreaTargets(), and Spell::SelectImplicitTrajTargets().
|
inline |
References m_elevation.
Referenced by spell_ioc_launch::Launch(), Spell::SelectImplicitTrajTargets(), and Spell::SendSpellGo().
GameObject * SpellCastTargets::GetGOTarget | ( | ) | const |
References m_objectTarget, and Object::ToGameObject().
Referenced by Spell::CheckCast(), Spell::CheckRange(), SpellScript::GetExplTargetGObj(), WorldSession::HandleCastSpellOpcode(), Spell::OnSpellLaunch(), and Spell::SelectEffectTypeImplicitTargets().
ObjectGuid SpellCastTargets::GetGOTargetGUID | ( | ) | const |
References ObjectGuid::Empty, GameObject, ObjectGuid::GetHigh(), m_objectTargetGUID, Mo_Transport, and Transport.
|
inline |
|
inline |
|
inline |
WorldObject * SpellCastTargets::GetObjectTarget | ( | ) | const |
WorldObject * SpellCastTargets::GetObjectTargetChannel | ( | Unit * | caster | ) | const |
References Object::GetGUID(), ObjectAccessor::GetWorldObject(), and m_objectTargetGUIDChannel.
Referenced by Spell::SelectImplicitChannelTargets().
ObjectGuid SpellCastTargets::GetObjectTargetGUID | ( | ) | const |
References m_objectTargetGUID.
Referenced by Spell::_cast(), and Spell::SendChannelStart().
|
inline |
References m_elevation, and m_speed.
Referenced by Spell::CalculateDelayMomentForDst(), and spell_vehicle_throw_passenger::HandleScript().
|
inline |
SpellDestination const * SpellCastTargets::GetSrc | ( | ) | const |
Position const * SpellCastTargets::GetSrcPos | ( | ) | const |
References SpellDestination::_position, and m_src.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), Spell::SelectImplicitAreaTargets(), and Spell::SelectImplicitTrajTargets().
|
inline |
References m_targetMask.
Referenced by Spell::_cast(), Spell::CheckCast(), HasDst(), HasSrc(), Spell::prepare(), and Spell::SendSpellGo().
Unit * SpellCastTargets::GetUnitTarget | ( | ) | const |
References m_objectTarget, and Object::ToUnit().
Referenced by Spell::_cast(), Spell::CheckCast(), Spell::CheckItems(), Spell::CheckPetCast(), Spell::CheckRange(), Spell::DoSpellHitOnUnit(), Spell::EffectTeleportUnits(), Spell::EffectTriggerSpell(), SpellScript::GetExplTargetUnit(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), Spell::SelectEffectTypeImplicitTargets(), Spell::SelectExplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitNearbyTargets(), and Spell::update().
ObjectGuid SpellCastTargets::GetUnitTargetGUID | ( | ) | const |
References ObjectGuid::Empty, ObjectGuid::GetHigh(), m_objectTargetGUID, Pet, Player, Unit, and Vehicle.
Referenced by Spell::DoAllEffectOnTarget(), Spell::TakePower(), and Spell::update().
|
inline |
References GetTargetMask(), and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckCast(), Spell::CheckDst(), Spell::CheckEffectTarget(), Spell::CheckRange(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectJumpDest(), Spell::EffectKnockBack(), Spell::EffectLeap(), Spell::EffectPullTowards(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), Spell::EffectTransmitted(), SpellScript::GetExplTargetDest(), Spell::handle_delayed(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::InitExplicitTargets(), Spell::prepare(), Spell::SelectSpellTargets(), Update(), and Spell::UpdatePointers().
bool SpellCastTargets::HasDstChannel | ( | ) | const |
References SpellDestination::_position, Position::GetExactDist(), and m_dstChannel.
Referenced by Unit::DealDamage(), and Spell::SelectImplicitChannelTargets().
|
inline |
References GetTargetMask(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by Spell::CheckSrc(), WorldSession::HandleUpdateMissileTrajectory(), Spell::InitExplicitTargets(), and Update().
|
inline |
References m_speed.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckRange(), Spell::SelectImplicitTrajTargets(), and Spell::SendSpellGo().
void SpellCastTargets::ModDst | ( | Position const & | pos | ) |
References ASSERT, m_dst, m_targetMask, SpellDestination::Relocate(), and TARGET_FLAG_DEST_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::SelectImplicitDestDestTargets(), and Spell::SelectImplicitTrajTargets().
void SpellCastTargets::ModDst | ( | SpellDestination const & | spellDest | ) |
References ASSERT, m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
void SpellCastTargets::ModSrc | ( | Position const & | pos | ) |
References ASSERT, m_src, m_targetMask, SpellDestination::Relocate(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory().
void SpellCastTargets::OutDebug | ( | ) | const |
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, LOG_INFO, m_dst, m_elevation, m_itemTargetGUID, m_objectTargetGUID, m_speed, m_src, m_strTarget, m_targetMask, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT_MASK, TARGET_FLAG_ITEM, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT_MASK, ObjectGuid::ToString(), and Position::ToString().
void SpellCastTargets::Read | ( | ByteBuffer & | data, |
Unit * | caster | ||
) |
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Unit::GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), m_dst, m_itemTargetGUID, m_objectTargetGUID, m_src, m_strTarget, m_targetMask, Position::PositionXYZStream(), ObjectGuid::ReadAsPacked(), Position::Relocate(), TARGET_FLAG_CORPSE_ALLY, TARGET_FLAG_CORPSE_ENEMY, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_ITEM, TARGET_FLAG_NONE, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT, TARGET_FLAG_UNIT_MINIPET, and Update().
Referenced by WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetCastSpellOpcode(), and WorldSession::HandleUseItemOpcode().
void SpellCastTargets::RemoveDst | ( | ) |
References m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::InitExplicitTargets().
void SpellCastTargets::RemoveObjectTarget | ( | ) |
References ObjectGuid::Clear(), m_objectTarget, m_objectTargetGUID, m_targetMask, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_GAMEOBJECT_MASK, and TARGET_FLAG_UNIT_MASK.
Referenced by Spell::EffectSkinPlayerCorpse(), and Spell::InitExplicitTargets().
void SpellCastTargets::RemoveSrc | ( | ) |
References m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
Referenced by Spell::InitExplicitTargets().
void SpellCastTargets::SetCorpseTarget | ( | Corpse * | target | ) |
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_CORPSE_MASK.
void SpellCastTargets::SetDst | ( | float | x, |
float | y, | ||
float | z, | ||
float | orientation, | ||
uint32 | mapId = MAPID_INVALID |
||
) |
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by spell_igb_incinerating_blast::CalculateDamage(), Unit::CastSpell(), Spell::CheckDst(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), spell_dk_raise_dead::HandleRaiseDead(), Spell::InitExplicitTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitNearbyTargets(), Spell::SelectImplicitTargetDestTargets(), and SpellScript::SetExplTargetDest().
void SpellCastTargets::SetDst | ( | Position const & | pos | ) |
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
void SpellCastTargets::SetDst | ( | SpellCastTargets const & | spellTargets | ) |
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
void SpellCastTargets::SetDst | ( | SpellDestination const & | spellDest | ) |
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
void SpellCastTargets::SetDst | ( | WorldObject const & | wObj | ) |
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
void SpellCastTargets::SetDstChannel | ( | SpellDestination const & | spellDest | ) |
References m_dstChannel.
Referenced by AuraEffect::HandlePeriodicTriggerSpellAuraTick(), and AuraEffect::HandlePeriodicTriggerSpellWithValueAuraTick().
|
inline |
References m_elevation.
Referenced by WorldSession::HandleClientCastFlags(), and WorldSession::HandleUpdateMissileTrajectory().
void SpellCastTargets::SetGOTarget | ( | GameObject * | target | ) |
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_GAMEOBJECT.
Referenced by Unit::CastSpell().
void SpellCastTargets::SetItemTarget | ( | Item * | item | ) |
References Object::GetEntry(), Object::GetGUID(), m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_ITEM.
Referenced by Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemTmp(), Spell::EffectSummonChangeItem(), Spell::TakeCastItem(), and Spell::TakeReagents().
void SpellCastTargets::SetObjectTargetChannel | ( | ObjectGuid | targetGUID | ) |
References m_objectTargetGUIDChannel.
Referenced by AuraEffect::HandlePeriodicTriggerSpellAuraTick(), and AuraEffect::HandlePeriodicTriggerSpellWithValueAuraTick().
|
inline |
References m_speed.
Referenced by WorldSession::HandleClientCastFlags(), and WorldSession::HandleUpdateMissileTrajectory().
void SpellCastTargets::SetSrc | ( | float | x, |
float | y, | ||
float | z | ||
) |
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
Referenced by Spell::CheckSrc(), Spell::InitExplicitTargets(), and Spell::SelectEffectImplicitTargets().
void SpellCastTargets::SetSrc | ( | Position const & | pos | ) |
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
void SpellCastTargets::SetSrc | ( | WorldObject const & | wObj | ) |
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
|
inline |
|
inline |
References m_targetMask.
void SpellCastTargets::SetTradeItemTarget | ( | Player * | caster | ) |
References m_itemTargetEntry, m_itemTargetGUID, m_targetMask, ObjectGuid::Set(), TARGET_FLAG_TRADE_ITEM, TRADE_SLOT_NONTRADED, and Update().
Referenced by WorldSession::HandleAcceptTradeOpcode().
void SpellCastTargets::SetUnitTarget | ( | Unit * | target | ) |
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_UNIT.
Referenced by Unit::CastCustomSpell(), Unit::CastSpell(), Spell::CheckPetCast(), Spell::EffectForceCast(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), AuraEffect::HandlePeriodicTriggerSpellWithValueAuraTick(), Spell::InitExplicitTargets(), Spell::SelectExplicitTargets(), Spell::SelectImplicitNearbyTargets(), and PetAI::UpdateAI().
void SpellCastTargets::Update | ( | Unit * | caster | ) |
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Object::GetEntry(), Object::GetGUID(), Player::GetItemByGuid(), ObjectGuid::GetRawValue(), Player::GetTradeData(), ObjectAccessor::GetWorldObject(), HasDst(), HasSrc(), Object::IsPlayer(), m_dst, m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_objectTarget, m_objectTargetGUID, m_src, m_targetMask, Position::Relocate(), Position::RelocateOffset(), TARGET_FLAG_ITEM, TARGET_FLAG_TRADE_ITEM, Object::ToPlayer(), and TRADE_SLOT_NONTRADED.
Referenced by Read(), SetTradeItemTarget(), and Spell::UpdatePointers().
void SpellCastTargets::UpdateTradeSlotItem | ( | ) |
References Object::GetEntry(), Object::GetGUID(), m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_TRADE_ITEM.
Referenced by Spell::_cast().
void SpellCastTargets::Write | ( | ByteBuffer & | data | ) |
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Object::GetPackGUID(), m_dst, m_itemTarget, m_objectTargetGUID, m_src, m_strTarget, m_targetMask, Position::PositionXYZStream(), TARGET_FLAG_CORPSE_ALLY, TARGET_FLAG_CORPSE_ENEMY, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_ITEM, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT, TARGET_FLAG_UNIT_MINIPET, and ObjectGuid::WriteAsPacked().
Referenced by Spell::SendSpellGo(), and Spell::SendSpellStart().
|
private |
Referenced by GetDist2d(), GetDst(), GetDstPos(), ModDst(), ModDst(), OutDebug(), Read(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), Update(), and Write().
|
private |
Referenced by GetDstChannel(), HasDstChannel(), and SetDstChannel().
|
private |
Referenced by GetElevation(), GetSpeedXY(), GetSpeedZ(), OutDebug(), and SetElevation().
|
private |
Referenced by GetItemTarget(), SetItemTarget(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().
|
private |
Referenced by GetItemTargetEntry(), SetItemTarget(), SetTradeItemTarget(), SpellCastTargets(), Update(), and UpdateTradeSlotItem().
|
private |
Referenced by GetItemTargetGUID(), OutDebug(), Read(), SetItemTarget(), SetTradeItemTarget(), Update(), and UpdateTradeSlotItem().
|
private |
|
private |
|
private |
Referenced by GetObjectTargetChannel(), and SetObjectTargetChannel().
|
private |
Referenced by GetSpeed(), GetSpeedXY(), GetSpeedZ(), HasTraj(), OutDebug(), and SetSpeed().
|
private |
Referenced by GetDist2d(), GetSrc(), GetSrcPos(), ModSrc(), OutDebug(), Read(), SetSrc(), SetSrc(), SetSrc(), Update(), and Write().
|
private |
Referenced by OutDebug(), Read(), and Write().
|
private |
Referenced by GetTargetMask(), ModDst(), ModDst(), ModSrc(), OutDebug(), Read(), RemoveDst(), RemoveObjectTarget(), RemoveSrc(), SetCorpseTarget(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), SetGOTarget(), SetItemTarget(), SetSrc(), SetSrc(), SetSrc(), SetTargetFlag(), SetTargetMask(), SetTradeItemTarget(), SetUnitTarget(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().