![]() |
TrinityCore
|
#include <SpellInfo.h>
Classes | |
| struct | StaticData |
Public Member Functions | |
| SpellImplicitTargetInfo () | |
| SpellImplicitTargetInfo (uint32 target) | |
| bool | IsArea () const |
| SpellTargetSelectionCategories | GetSelectionCategory () const |
| SpellTargetReferenceTypes | GetReferenceType () const |
| SpellTargetObjectTypes | GetObjectType () const |
| SpellTargetCheckTypes | GetCheckType () const |
| SpellTargetDirectionTypes | GetDirectionType () const |
| float | CalcDirectionAngle () const |
| Targets | GetTarget () const |
| uint32 | GetExplicitTargetMask (bool &srcSet, bool &dstSet) const |
Private Attributes | |
| Targets | _target |
Static Private Attributes | |
| static std::array< StaticData, TOTAL_SPELL_TARGETS > | _data |
Definition at line 174 of file SpellInfo.h.
|
inline |
Definition at line 179 of file SpellInfo.h.
| SpellImplicitTargetInfo::SpellImplicitTargetInfo | ( | uint32 | target | ) |
Definition at line 73 of file SpellInfo.cpp.
References _target.
| float SpellImplicitTargetInfo::CalcDirectionAngle | ( | ) | const |
Definition at line 108 of file SpellInfo.cpp.
References GetDirectionType(), M_PI, rand_norm(), TARGET_DIR_BACK, TARGET_DIR_BACK_LEFT, TARGET_DIR_BACK_RIGHT, TARGET_DIR_FRONT, TARGET_DIR_FRONT_LEFT, TARGET_DIR_FRONT_RIGHT, TARGET_DIR_LEFT, TARGET_DIR_RANDOM, and TARGET_DIR_RIGHT.
Referenced by Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitDestDestTargets(), Spell::SelectImplicitNearbyTargets(), and Spell::SelectImplicitTargetDestTargets().
| SpellTargetCheckTypes SpellImplicitTargetInfo::GetCheckType | ( | ) | const |
Definition at line 98 of file SpellInfo.cpp.
References _data, and _target.
Referenced by _isPositiveTarget(), GetExplicitTargetMask(), Totem::IsImmunedToSpellEffect(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), Spell::SelectImplicitLineTargets(), Spell::SelectImplicitNearbyTargets(), and Spell::SelectImplicitTrajTargets().
| SpellTargetDirectionTypes SpellImplicitTargetInfo::GetDirectionType | ( | ) | const |
Definition at line 103 of file SpellInfo.cpp.
References _data, and _target.
Referenced by CalcDirectionAngle().
| uint32 SpellImplicitTargetInfo::GetExplicitTargetMask | ( | bool & | srcSet, |
| bool & | dstSet | ||
| ) | const |
Definition at line 140 of file SpellInfo.cpp.
References GetCheckType(), GetObjectType(), GetReferenceType(), GetTarget(), TARGET_CHECK_ALLY, TARGET_CHECK_ENEMY, TARGET_CHECK_PARTY, TARGET_CHECK_PASSENGER, TARGET_CHECK_RAID, TARGET_CHECK_RAID_CLASS, TARGET_DEST_TRAJ, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_GAMEOBJECT_ITEM, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_UNIT, TARGET_FLAG_UNIT_ALLY, TARGET_FLAG_UNIT_ENEMY, TARGET_FLAG_UNIT_PARTY, TARGET_FLAG_UNIT_PASSENGER, TARGET_FLAG_UNIT_RAID, TARGET_OBJECT_TYPE_DEST, TARGET_OBJECT_TYPE_GOBJ, TARGET_OBJECT_TYPE_GOBJ_ITEM, TARGET_OBJECT_TYPE_SRC, TARGET_OBJECT_TYPE_UNIT, TARGET_OBJECT_TYPE_UNIT_AND_DEST, TARGET_REFERENCE_TYPE_DEST, TARGET_REFERENCE_TYPE_SRC, and TARGET_REFERENCE_TYPE_TARGET.
| SpellTargetObjectTypes SpellImplicitTargetInfo::GetObjectType | ( | ) | const |
Definition at line 93 of file SpellInfo.cpp.
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), SpellEffectInfo::GetProvidedTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), Spell::SelectImplicitLineTargets(), and Spell::SelectImplicitNearbyTargets().
| SpellTargetReferenceTypes SpellImplicitTargetInfo::GetReferenceType | ( | ) | const |
Definition at line 88 of file SpellInfo.cpp.
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitConeTargets(), Spell::SelectImplicitLineTargets(), and Spell::SelectImplicitNearbyTargets().
| SpellTargetSelectionCategories SpellImplicitTargetInfo::GetSelectionCategory | ( | ) | const |
Definition at line 83 of file SpellInfo.cpp.
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), IsArea(), and Spell::SelectEffectImplicitTargets().
| Targets SpellImplicitTargetInfo::GetTarget | ( | ) | const |
Definition at line 135 of file SpellInfo.cpp.
References _target.
Referenced by SpellInfo::_InitializeSpellPositivity(), _isPositiveEffectImpl(), SpellEffectInfo::CalcRadius(), Spell::CallScriptDestinationTargetSelectHandlers(), Spell::CallScriptObjectAreaTargetSelectHandlers(), Spell::CallScriptObjectTargetSelectHandlers(), Spell::CanOpenLock(), SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), Totem::IsImmunedToSpellEffect(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellTargetPositions(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitCasterObjectTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitConeTargets(), Spell::SelectImplicitDestDestTargets(), Spell::SelectImplicitNearbyTargets(), Spell::SelectImplicitTargetDestTargets(), and spell_pri_holy_word_salvation::Validate().
| bool SpellImplicitTargetInfo::IsArea | ( | ) | const |
Definition at line 78 of file SpellInfo.cpp.
References GetSelectionCategory(), TARGET_SELECT_CATEGORY_AREA, and TARGET_SELECT_CATEGORY_CONE.
Referenced by SpellEffectInfo::IsTargetingArea().
|
staticprivate |
Definition at line 246 of file SpellInfo.h.
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), and GetSelectionCategory().
|
private |
Definition at line 177 of file SpellInfo.h.
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), GetSelectionCategory(), GetTarget(), and SpellImplicitTargetInfo().