![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#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 |
|
inline |
SpellImplicitTargetInfo::SpellImplicitTargetInfo | ( | uint32 | target | ) |
float SpellImplicitTargetInfo::CalcDirectionAngle | ( | ) | const |
References GetDirectionType(), 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(), and Spell::SelectImplicitTargetDestTargets().
SpellTargetCheckTypes SpellImplicitTargetInfo::GetCheckType | ( | ) | const |
References _data, and _target.
Referenced by GetExplicitTargetMask(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), and Spell::SelectImplicitNearbyTargets().
SpellTargetDirectionTypes SpellImplicitTargetInfo::GetDirectionType | ( | ) | const |
References _data, and _target.
Referenced by CalcDirectionAngle().
uint32 SpellImplicitTargetInfo::GetExplicitTargetMask | ( | bool & | srcSet, |
bool & | dstSet | ||
) | const |
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 |
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), SpellEffectInfo::GetMissingTargetMask(), SpellEffectInfo::GetProvidedTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), and Spell::SelectImplicitNearbyTargets().
SpellTargetReferenceTypes SpellImplicitTargetInfo::GetReferenceType | ( | ) | const |
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitConeTargets(), and Spell::SelectImplicitNearbyTargets().
SpellTargetSelectionCategories SpellImplicitTargetInfo::GetSelectionCategory | ( | ) | const |
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), IsArea(), Spell::SelectEffectImplicitTargets(), and Spell::SelectImplicitChainTargets().
Targets SpellImplicitTargetInfo::GetTarget | ( | ) | const |
References _target.
Referenced by Spell::CallScriptDestinationTargetSelectHandlers(), Spell::CallScriptObjectAreaTargetSelectHandlers(), Spell::CallScriptObjectTargetSelectHandlers(), GetExplicitTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitCasterObjectTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitDestDestTargets(), and Spell::SelectImplicitTargetDestTargets().
bool SpellImplicitTargetInfo::IsArea | ( | ) | const |
References GetSelectionCategory(), TARGET_SELECT_CATEGORY_AREA, and TARGET_SELECT_CATEGORY_CONE.
Referenced by SpellEffectInfo::IsTargetingArea().
|
staticprivate |
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), and GetSelectionCategory().
|
private |
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), GetSelectionCategory(), GetTarget(), and SpellImplicitTargetInfo().