![]() |
TrinityCore
|
#include <SpellDefines.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_pitch |
| float | m_speed |
| std::string | m_strTarget |
Definition at line 371 of file SpellDefines.h.
| SpellCastTargets::SpellCastTargets | ( | Unit * | caster, |
| WorldPackets::Spells::SpellCastRequest const & | spellCastRequest | ||
| ) |
Definition at line 103 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, WorldPackets::Spells::SpellTargetData::DstLocation, ObjectGuid::IsEmpty(), m_dst, m_src, WorldPackets::Spells::SpellCastRequest::MissileTrajectory, WorldPackets::Spells::SpellTargetData::Orientation, WorldPackets::Spells::MissileTrajectoryRequest::Pitch, Position::Relocate(), Position::SetOrientation(), SetPitch(), SetSpeed(), WorldPackets::Spells::MissileTrajectoryRequest::Speed, WorldPackets::Spells::SpellTargetData::SrcLocation, WorldPackets::Spells::SpellCastRequest::Target, and Update().
| Corpse * SpellCastTargets::GetCorpseTarget | ( | ) | const |
Definition at line 238 of file Spell.cpp.
References m_objectTarget, and Object::ToCorpse().
Referenced by Spell::GetMinMaxRange(), and Spell::SelectEffectTypeImplicitTargets().
| ObjectGuid SpellCastTargets::GetCorpseTargetGUID | ( | ) | const |
Definition at line 230 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsCorpse(), and m_objectTargetGUID.
Referenced by Spell::CheckEffectTarget().
|
inline |
Definition at line 435 of file SpellDefines.h.
Referenced by Spell::CalculateDelayMomentForDst(), and Spell::SelectImplicitTrajTargets().
| SpellDestination const * SpellCastTargets::GetDst | ( | ) | const |
Definition at line 331 of file Spell.cpp.
References m_dst.
Referenced by spell_torghast_poisonous_spores::HandleProc(), spell_mage_ethereal_blink::HandleProc(), spell_pri_divine_word::HandleProc(), Spell::SelectImplicitDestDestTargets(), and Spell::SelectSpellTargets().
| WorldLocation const * SpellCastTargets::GetDstPos | ( | ) | const |
Definition at line 336 of file Spell.cpp.
References SpellDestination::_position, and m_dst.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckCast(), Spell::CheckRange(), Spell::EffectPullTowardsDest(), SpellScript::GetExplTargetDest(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitLineTargets(), Spell::SelectImplicitTrajTargets(), and Spell::SelectSpellTargets().
| GameObject * SpellCastTargets::GetGOTarget | ( | ) | const |
Definition at line 212 of file Spell.cpp.
References m_objectTarget, and Object::ToGameObject().
Referenced by Spell::CheckCast(), Spell::CheckRange(), Player::ExecutePendingSpellCastRequest(), SpellScript::GetExplTargetGObj(), and Spell::SelectEffectTypeImplicitTargets().
| ObjectGuid SpellCastTargets::GetGOTargetGUID | ( | ) | const |
Definition at line 204 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsAnyTypeGameObject(), and m_objectTargetGUID.
|
inline |
Definition at line 401 of file SpellDefines.h.
Referenced by Spell::_cast(), Spell::CheckCast(), Spell::CheckItems(), Spell::EffectSummonChangeItem(), SpellScript::GetExplTargetItem(), Spell::SelectEffectTypeImplicitTargets(), Spell::SelectImplicitTargetObjectTargets(), and Spell::TakeCastItem().
|
inline |
Definition at line 402 of file SpellDefines.h.
Referenced by Spell::CheckItems(), and Spell::TakeReagents().
|
inline |
Definition at line 400 of file SpellDefines.h.
Referenced by Spell::CheckCast(), and Spell::CheckItems().
| WorldObject * SpellCastTargets::GetObjectTarget | ( | ) | const |
Definition at line 246 of file Spell.cpp.
References m_objectTarget.
Referenced by Spell::_cast(), Spell::CheckCast(), SpellScript::GetExplTargetWorldObject(), Spell::InitExplicitTargets(), Spell::prepare(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitTargetDestTargets(), and Spell::SelectImplicitTargetObjectTargets().
| ObjectGuid SpellCastTargets::GetObjectTargetGUID | ( | ) | const |
Definition at line 251 of file Spell.cpp.
References m_objectTargetGUID.
Referenced by Spell::_cast(), and spell_mage_hot_streak::CheckProc().
|
inline |
Definition at line 430 of file SpellDefines.h.
Referenced by Spell::SelectImplicitTrajTargets(), and Spell::SendSpellGo().
|
inline |
Definition at line 432 of file SpellDefines.h.
|
inline |
Definition at line 436 of file SpellDefines.h.
Referenced by Spell::CalculateDelayMomentForDst(), and spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
|
inline |
Definition at line 437 of file SpellDefines.h.
| SpellDestination const * SpellCastTargets::GetSrc | ( | ) | const |
| Position const * SpellCastTargets::GetSrcPos | ( | ) | const |
Definition at line 297 of file Spell.cpp.
References SpellDestination::_position, and m_src.
Referenced by Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitLineTargets(), and Spell::SelectImplicitTrajTargets().
|
inline |
Definition at line 380 of file SpellDefines.h.
Referenced by Spell::_cast(), Spell::CheckCast(), HasDst(), HasSrc(), and Spell::prepare().
|
inline |
Definition at line 440 of file SpellDefines.h.
| Unit * SpellCastTargets::GetUnitTarget | ( | ) | const |
Definition at line 186 of file Spell.cpp.
References m_objectTarget, and Object::ToUnit().
Referenced by Spell::_cast(), Spell::CheckCast(), Spell::CheckItems(), Spell::CheckPetCast(), spell_warr_ashen_juggernaut::CheckProc(), Spell::CheckRange(), Spell::EffectJump(), Spell::EffectJumpCharge(), Spell::EffectJumpDest(), Spell::EffectTeleportUnits(), Spell::EffectTeleportUnitsWithVisualLoadingScreen(), Spell::EffectTriggerSpell(), Player::ExecutePendingSpellCastRequest(), SpellScript::GetExplTargetUnit(), Spell::GetMinMaxRange(), WorldSession::HandlePetActionHelper(), item_gor_dreks_ointment::OnUse(), Spell::SelectEffectTypeImplicitTargets(), Spell::SelectExplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitLineTargets(), Spell::SendCastResult(), Spell::update(), and Spell::UpdateSpellHealPrediction().
| ObjectGuid SpellCastTargets::GetUnitTargetGUID | ( | ) | const |
Definition at line 178 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsUnit(), and m_objectTargetGUID.
Referenced by Player::ExecutePendingSpellCastRequest(), spell_baleroc_torment_target_search::OnHit(), Spell::SendChannelStart(), Spell::TakePower(), and Spell::update().
| bool SpellCastTargets::HasDst | ( | ) | const |
Definition at line 393 of file Spell.cpp.
References GetTargetMask(), and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckCast(), Spell::CheckDst(), Spell::CheckRange(), Spell::EffectBind(), Spell::EffectChangeRaidMarker(), Spell::EffectCreateAreaTrigger(), Spell::EffectCreateConversation(), Spell::EffectCreatePrivateSceneObject(), Spell::EffectCreateSceneObject(), Spell::EffectJumpDest(), Spell::EffectKnockBack(), Spell::EffectLeap(), Spell::EffectPullTowardsDest(), Spell::EffectScriptEffect(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTeleportUnits(), Spell::EffectTeleportUnitsWithVisualLoadingScreen(), Spell::EffectTeleUnitsFaceCaster(), Spell::EffectTransmitted(), Spell::EffectTriggerSpell(), SpellScript::GetExplTargetDest(), Spell::handle_delayed(), WorldSession::HandleMissileTrajectoryCollision(), WorldSession::HandleUpdateMissileTrajectory(), Spell::InitExplicitTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectSpellTargets(), Spell::SummonGuardian(), Update(), and Spell::UpdatePointers().
| bool SpellCastTargets::HasSrc | ( | ) | const |
Definition at line 388 of file Spell.cpp.
References GetTargetMask(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by Spell::CheckSrc(), WorldSession::HandleUpdateMissileTrajectory(), Spell::InitExplicitTargets(), and Update().
|
inline |
Definition at line 428 of file SpellDefines.h.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckRange(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), Spell::SelectImplicitTrajTargets(), and Spell::SendSpellGo().
| void SpellCastTargets::ModDst | ( | Position const & | pos | ) |
Definition at line 371 of file Spell.cpp.
References ASSERT, m_dst, m_targetMask, SpellDestination::Relocate(), and TARGET_FLAG_DEST_LOCATION.
Referenced by WorldSession::HandleMissileTrajectoryCollision(), WorldSession::HandleUpdateMissileTrajectory(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitDestDestTargets(), and Spell::SelectImplicitTrajTargets().
| void SpellCastTargets::ModDst | ( | SpellDestination const & | spellDest | ) |
Definition at line 377 of file Spell.cpp.
References ASSERT, m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::ModSrc | ( | Position const & | pos | ) |
Definition at line 320 of file Spell.cpp.
References ASSERT, m_src, m_targetMask, SpellDestination::Relocate(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory().
| void SpellCastTargets::RemoveDst | ( | ) |
Definition at line 383 of file Spell.cpp.
References m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::InitExplicitTargets().
| void SpellCastTargets::RemoveObjectTarget | ( | ) |
Definition at line 256 of file Spell.cpp.
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::InitExplicitTargets().
| void SpellCastTargets::RemoveSrc | ( | ) |
Definition at line 326 of file Spell.cpp.
References m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
Referenced by Spell::InitExplicitTargets().
| void SpellCastTargets::SetDst | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| uint32 | mapId = MAPID_INVALID |
||
| ) |
Definition at line 341 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::CheckDst(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), spell_pri_leap_of_faith_effect_trigger::HandleEffectDummy(), Spell::InitExplicitTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitNearbyTargets(), Spell::SelectImplicitTargetDestTargets(), and SpellScript::SetExplTargetDest().
| void SpellCastTargets::SetDst | ( | Position const & | pos | ) |
Definition at line 347 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | SpellCastTargets const & | spellTargets | ) |
Definition at line 365 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | SpellDestination const & | spellDest | ) |
Definition at line 359 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | WorldObject const & | wObj | ) |
Definition at line 353 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetGOTarget | ( | GameObject * | target | ) |
Definition at line 220 of file Spell.cpp.
References BaseEntity::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_GAMEOBJECT.
Referenced by Spell::EffectTriggerMissileSpell(), and Spell::EffectTriggerSpell().
| void SpellCastTargets::SetItemTarget | ( | Item * | item | ) |
Definition at line 263 of file Spell.cpp.
References Object::GetEntry(), BaseEntity::GetGUID(), m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_ITEM.
Referenced by Spell::EffectEnchantItemPerm(), Spell::EffectSummonChangeItem(), Spell::TakeCastItem(), and Spell::TakeReagents().
|
inline |
Definition at line 431 of file SpellDefines.h.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), and SpellCastTargets().
|
inline |
Definition at line 433 of file SpellDefines.h.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), and SpellCastTargets().
| void SpellCastTargets::SetSrc | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 302 of file Spell.cpp.
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 | ) |
Definition at line 308 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
| void SpellCastTargets::SetSrc | ( | WorldObject const & | wObj | ) |
Definition at line 314 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
|
inline |
Definition at line 383 of file SpellDefines.h.
Referenced by Spell::SelectSpellTargets().
|
inline |
Definition at line 381 of file SpellDefines.h.
| void SpellCastTargets::SetTradeItemTarget | ( | Player * | caster | ) |
Definition at line 274 of file Spell.cpp.
References m_itemTargetEntry, m_itemTargetGUID, m_targetMask, TARGET_FLAG_TRADE_ITEM, ObjectGuid::TradeItem, and Update().
Referenced by WorldSession::HandleAcceptTradeOpcode().
| void SpellCastTargets::SetUnitTarget | ( | Unit * | target | ) |
Definition at line 194 of file Spell.cpp.
References BaseEntity::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_UNIT.
Referenced by Spell::CheckPetCast(), PlayerAI::DoCastAtTarget(), PlayerAI::DoRangedAttackIfReady(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), spell_pri_leap_of_faith_effect_trigger::HandleEffectDummy(), Spell::InitExplicitTargets(), Spell::SelectExplicitTargets(), spell_dh_demonic::TriggerMetamorphosis(), and PetAI::UpdateAI().
| void SpellCastTargets::Update | ( | WorldObject * | caster | ) |
Definition at line 398 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Object::GetEntry(), BaseEntity::GetGUID(), Player::GetItemByGuid(), Player::GetTradeData(), BaseEntity::GetTypeId(), ObjectAccessor::GetWorldObject(), HasDst(), HasSrc(), ObjectGuid::IsEmpty(), 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(), TRADE_SLOT_NONTRADED, ObjectGuid::TradeItem, and TYPEID_PLAYER.
Referenced by Spell::EffectTriggerSpell(), SetTradeItemTarget(), SpellCastTargets(), and Spell::UpdatePointers().
| void SpellCastTargets::UpdateTradeSlotItem | ( | ) |
Definition at line 283 of file Spell.cpp.
References Object::GetEntry(), BaseEntity::GetGUID(), m_itemTarget, m_itemTargetEntry, m_itemTargetGUID, m_targetMask, and TARGET_FLAG_TRADE_ITEM.
Referenced by Spell::_cast().
| void SpellCastTargets::Write | ( | WorldPackets::Spells::SpellTargetData & | data | ) |
Definition at line 144 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, WorldPackets::Spells::SpellTargetData::DstLocation, WorldPackets::Spells::SpellTargetData::Flags, BaseEntity::GetGUID(), ObjectGuid::IsEmpty(), WorldPackets::Spells::SpellTargetData::Item, m_dst, m_itemTarget, m_objectTargetGUID, m_src, m_strTarget, m_targetMask, WorldPackets::Spells::SpellTargetData::Name, WorldPackets::Spells::SpellTargetData::SrcLocation, 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 WorldPackets::Spells::SpellTargetData::Unit.
Referenced by Spell::SendSpellGo(), and Spell::SendSpellStart().
|
private |
Definition at line 455 of file SpellDefines.h.
Referenced by GetDst(), GetDstPos(), ModDst(), ModDst(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 447 of file SpellDefines.h.
Referenced by SetItemTarget(), Update(), UpdateTradeSlotItem(), and Write().
|
private |
Definition at line 452 of file SpellDefines.h.
Referenced by SetItemTarget(), SetTradeItemTarget(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 451 of file SpellDefines.h.
Referenced by SetItemTarget(), SetTradeItemTarget(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 446 of file SpellDefines.h.
Referenced by GetCorpseTarget(), GetGOTarget(), GetObjectTarget(), GetUnitTarget(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), and Update().
|
private |
Definition at line 450 of file SpellDefines.h.
Referenced by GetCorpseTargetGUID(), GetGOTargetGUID(), GetObjectTargetGUID(), GetUnitTargetGUID(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), Update(), and Write().
|
private |
Definition at line 457 of file SpellDefines.h.
|
private |
Definition at line 457 of file SpellDefines.h.
|
private |
Definition at line 454 of file SpellDefines.h.
Referenced by GetSrc(), GetSrcPos(), ModSrc(), SetSrc(), SetSrc(), SetSrc(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 458 of file SpellDefines.h.
Referenced by Write().
|
private |
Definition at line 443 of file SpellDefines.h.
Referenced by ModDst(), ModDst(), ModSrc(), RemoveDst(), RemoveObjectTarget(), RemoveSrc(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), SetGOTarget(), SetItemTarget(), SetSrc(), SetSrc(), SetSrc(), SetTradeItemTarget(), SetUnitTarget(), Update(), UpdateTradeSlotItem(), and Write().