![]() |
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 226 of file SpellDefines.h.
| SpellCastTargets::SpellCastTargets | ( | ) |
Definition at line 118 of file Spell.cpp.
References m_itemTarget, m_itemTargetEntry, m_objectTarget, and m_targetMask.
| SpellCastTargets::SpellCastTargets | ( | Unit * | caster, |
| WorldPackets::Spells::SpellCastRequest const & | spellCastRequest | ||
| ) |
Definition at line 128 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, WorldPackets::Array< T, N >::begin(), WorldPackets::Spells::SpellTargetData::DstLocation, ObjectGuid::IsEmpty(), m_dst, m_src, m_strTarget, WorldPackets::Spells::SpellCastRequest::MissileTrajectory, WorldPackets::Spells::SpellTargetData::Name, Position::Relocate(), SetPitch(), SetSpeed(), WorldPackets::Spells::SpellTargetData::SrcLocation, WorldPackets::Spells::SpellCastRequest::Target, and Update().
| Corpse * SpellCastTargets::GetCorpseTarget | ( | ) | const |
Definition at line 325 of file Spell.cpp.
References m_objectTarget, and Object::ToCorpse().
Referenced by Spell::GetMinMaxRange(), and Spell::SelectEffectTypeImplicitTargets().
| ObjectGuid SpellCastTargets::GetCorpseTargetGUID | ( | ) | const |
Definition at line 317 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsCorpse(), and m_objectTargetGUID.
Referenced by Spell::CheckEffectTarget().
|
inline |
Definition at line 291 of file SpellDefines.h.
Referenced by Spell::CalculateDelayMomentForDst(), and Spell::SelectImplicitTrajTargets().
| SpellDestination const * SpellCastTargets::GetDst | ( | ) | const |
Definition at line 418 of file Spell.cpp.
References m_dst.
Referenced by Spell::SelectImplicitDestDestTargets(), and Spell::SelectSpellTargets().
| WorldLocation const * SpellCastTargets::GetDstPos | ( | ) | const |
Definition at line 423 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(), WorldSession::HandleUpdateProjectilePosition(), Spell::SelectImplicitAreaTargets(), and Spell::SelectImplicitTrajTargets().
| GameObject * SpellCastTargets::GetGOTarget | ( | ) | const |
Definition at line 299 of file Spell.cpp.
References m_objectTarget, and Object::ToGameObject().
Referenced by Spell::CheckCast(), Spell::CheckRange(), SpellScript::GetExplTargetGObj(), WorldSession::HandleCastSpellOpcode(), item_defias_gunpowder::OnUse(), and Spell::SelectEffectTypeImplicitTargets().
| ObjectGuid SpellCastTargets::GetGOTargetGUID | ( | ) | const |
Definition at line 291 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsAnyTypeGameObject(), and m_objectTargetGUID.
|
inline |
Definition at line 257 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 258 of file SpellDefines.h.
Referenced by Spell::CheckItems(), and Spell::TakeReagents().
|
inline |
Definition at line 256 of file SpellDefines.h.
Referenced by Spell::CheckCast(), and Spell::CheckItems().
| WorldObject * SpellCastTargets::GetObjectTarget | ( | ) | const |
Definition at line 333 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 338 of file Spell.cpp.
References m_objectTargetGUID.
Referenced by Spell::_cast(), Spell::EffectJumpDest(), and Spell::SendChannelStart().
|
inline |
Definition at line 286 of file SpellDefines.h.
Referenced by Spell::SelectImplicitTrajTargets(), and Spell::SendSpellGo().
|
inline |
Definition at line 288 of file SpellDefines.h.
|
inline |
Definition at line 292 of file SpellDefines.h.
Referenced by Spell::CalculateDelayMomentForDst(), and spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
|
inline |
Definition at line 293 of file SpellDefines.h.
Referenced by spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript().
| SpellDestination const * SpellCastTargets::GetSrc | ( | ) | const |
| Position const * SpellCastTargets::GetSrcPos | ( | ) | const |
Definition at line 384 of file Spell.cpp.
References SpellDestination::_position, and m_src.
Referenced by Spell::SelectImplicitAreaTargets(), and Spell::SelectImplicitTrajTargets().
|
inline |
Definition at line 236 of file SpellDefines.h.
Referenced by Spell::_cast(), Spell::CheckCast(), HasDst(), HasSrc(), Spell::prepare(), and Spell::SendSpellGo().
|
inline |
Definition at line 296 of file SpellDefines.h.
| Unit * SpellCastTargets::GetUnitTarget | ( | ) | const |
Definition at line 273 of file Spell.cpp.
References m_objectTarget, and Object::ToUnit().
Referenced by Spell::_cast(), Spell::CheckCast(), Spell::CheckItems(), Spell::CheckPetCast(), Spell::CheckRange(), Spell::EffectTeleportUnits(), Spell::EffectTriggerSpell(), SpellScript::GetExplTargetUnit(), Spell::GetMinMaxRange(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetActionHelper(), Spell::SelectEffectTypeImplicitTargets(), Spell::SelectExplicitTargets(), Spell::SelectImplicitAreaTargets(), and Spell::update().
| ObjectGuid SpellCastTargets::GetUnitTargetGUID | ( | ) | const |
Definition at line 265 of file Spell.cpp.
References ObjectGuid::Empty, ObjectGuid::IsUnit(), and m_objectTargetGUID.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), WorldSession::HandleCastSpellOpcode(), Spell::TakePower(), and Spell::update().
| bool SpellCastTargets::HasDst | ( | ) | const |
Definition at line 480 of file Spell.cpp.
References GetTargetMask(), and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::CalculateDelayMomentForDst(), Spell::CheckCast(), Spell::CheckDst(), Spell::CheckRange(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectJumpDest(), Spell::EffectKnockBack(), Spell::EffectLeap(), Spell::EffectPullTowardsDest(), Spell::EffectScriptEffect(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), Spell::EffectTransmitted(), SpellScript::GetExplTargetDest(), Spell::handle_delayed(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::InitExplicitTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectSpellTargets(), Spell::SendChannelStart(), Spell::SummonGuardian(), Update(), and Spell::UpdatePointers().
| bool SpellCastTargets::HasSrc | ( | ) | const |
Definition at line 475 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 284 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 458 of file Spell.cpp.
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 | ) |
Definition at line 464 of file Spell.cpp.
References ASSERT, m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::ModSrc | ( | Position const & | pos | ) |
Definition at line 407 of file Spell.cpp.
References ASSERT, m_src, m_targetMask, SpellDestination::Relocate(), and TARGET_FLAG_SOURCE_LOCATION.
Referenced by WorldSession::HandleUpdateMissileTrajectory().
| void SpellCastTargets::Read | ( | ByteBuffer & | data, |
| Unit * | caster | ||
| ) |
Definition at line 171 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Unit::GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), ObjectGuid::IsEmpty(), 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::HandleUseItemOpcode().
| void SpellCastTargets::RemoveDst | ( | ) |
Definition at line 470 of file Spell.cpp.
References m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::InitExplicitTargets().
| void SpellCastTargets::RemoveObjectTarget | ( | ) |
Definition at line 343 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 413 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 428 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
Referenced by Spell::CheckDst(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), Spell::InitExplicitTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitNearbyTargets(), Spell::SelectImplicitTargetDestTargets(), and SpellScript::SetExplTargetDest().
| void SpellCastTargets::SetDst | ( | Position const & | pos | ) |
Definition at line 434 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | SpellCastTargets const & | spellTargets | ) |
Definition at line 452 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | SpellDestination const & | spellDest | ) |
Definition at line 446 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetDst | ( | WorldObject const & | wObj | ) |
Definition at line 440 of file Spell.cpp.
References m_dst, m_targetMask, and TARGET_FLAG_DEST_LOCATION.
| void SpellCastTargets::SetGOTarget | ( | GameObject * | target | ) |
Definition at line 307 of file Spell.cpp.
References Object::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 350 of file Spell.cpp.
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().
|
inline |
Definition at line 287 of file SpellDefines.h.
Referenced by WorldSession::HandleClientCastFlags(), WorldSession::HandleUpdateMissileTrajectory(), and SpellCastTargets().
|
inline |
Definition at line 289 of file SpellDefines.h.
Referenced by WorldSession::HandleClientCastFlags(), WorldSession::HandleUpdateMissileTrajectory(), and SpellCastTargets().
| void SpellCastTargets::SetSrc | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 389 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 395 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
| void SpellCastTargets::SetSrc | ( | WorldObject const & | wObj | ) |
Definition at line 401 of file Spell.cpp.
References m_src, m_targetMask, and TARGET_FLAG_SOURCE_LOCATION.
|
inline |
Definition at line 239 of file SpellDefines.h.
Referenced by Spell::SelectSpellTargets().
|
inline |
Definition at line 237 of file SpellDefines.h.
| void SpellCastTargets::SetTradeItemTarget | ( | Player * | caster | ) |
Definition at line 361 of file Spell.cpp.
References m_itemTargetEntry, m_itemTargetGUID, m_targetMask, ObjectGuid::SetRawValue(), TARGET_FLAG_TRADE_ITEM, TRADE_SLOT_NONTRADED, and Update().
Referenced by WorldSession::HandleAcceptTradeOpcode().
| void SpellCastTargets::SetUnitTarget | ( | Unit * | target | ) |
Definition at line 281 of file Spell.cpp.
References Object::GetGUID(), m_objectTarget, m_objectTargetGUID, m_targetMask, and TARGET_FLAG_UNIT.
Referenced by Spell::CheckPetCast(), PlayerAI::DoCastAtTarget(), PlayerAI::DoRangedAttackIfReady(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), Spell::InitExplicitTargets(), Spell::SelectExplicitTargets(), and PetAI::UpdateAI().
| void SpellCastTargets::Update | ( | WorldObject * | caster | ) |
Definition at line 485 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Object::GetEntry(), Object::GetGUID(), Player::GetItemByGuid(), ObjectGuid::GetRawValue(), Player::GetTradeData(), Object::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, and TYPEID_PLAYER.
Referenced by Read(), SetTradeItemTarget(), SpellCastTargets(), and Spell::UpdatePointers().
| void SpellCastTargets::UpdateTradeSlotItem | ( | ) |
Definition at line 370 of file Spell.cpp.
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 | ( | WorldPackets::Spells::SpellTargetData & | data | ) |
Definition at line 224 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, WorldPackets::Spells::SpellTargetData::DstLocation, WorldPackets::Spells::SpellTargetData::Flags, Object::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 311 of file SpellDefines.h.
Referenced by GetDst(), GetDstPos(), ModDst(), ModDst(), Read(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 303 of file SpellDefines.h.
Referenced by SetItemTarget(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().
|
private |
Definition at line 308 of file SpellDefines.h.
Referenced by SetItemTarget(), SetTradeItemTarget(), SpellCastTargets(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 307 of file SpellDefines.h.
Referenced by Read(), SetItemTarget(), SetTradeItemTarget(), Update(), and UpdateTradeSlotItem().
|
private |
Definition at line 302 of file SpellDefines.h.
Referenced by GetCorpseTarget(), GetGOTarget(), GetObjectTarget(), GetUnitTarget(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), SpellCastTargets(), and Update().
|
private |
Definition at line 306 of file SpellDefines.h.
Referenced by GetCorpseTargetGUID(), GetGOTargetGUID(), GetObjectTargetGUID(), GetUnitTargetGUID(), Read(), RemoveObjectTarget(), SetGOTarget(), SetUnitTarget(), Update(), and Write().
|
private |
Definition at line 313 of file SpellDefines.h.
|
private |
Definition at line 313 of file SpellDefines.h.
|
private |
Definition at line 310 of file SpellDefines.h.
Referenced by GetSrc(), GetSrcPos(), ModSrc(), Read(), SetSrc(), SetSrc(), SetSrc(), SpellCastTargets(), Update(), and Write().
|
private |
Definition at line 314 of file SpellDefines.h.
Referenced by Read(), SpellCastTargets(), and Write().
|
private |
Definition at line 299 of file SpellDefines.h.
Referenced by ModDst(), ModDst(), ModSrc(), Read(), RemoveDst(), RemoveObjectTarget(), RemoveSrc(), SetDst(), SetDst(), SetDst(), SetDst(), SetDst(), SetGOTarget(), SetItemTarget(), SetSrc(), SetSrc(), SetSrc(), SetTradeItemTarget(), SetUnitTarget(), SpellCastTargets(), Update(), UpdateTradeSlotItem(), and Write().