|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <SpellTargeting.h>
Classes | |
| struct | StaticData |
Public Member Functions | |
| float | CalcDirectionAngle () const |
| SpellTargetCheckTypes | GetCheckType () const |
| SpellTargetDirectionTypes | GetDirectionType () const |
| uint32 | GetExplicitTargetMask (bool &srcSet, bool &dstSet) const |
| SpellTargetObjectTypes | GetObjectType () const |
| SpellTargetReferenceTypes | GetReferenceType () const |
| SpellTargetSelectionCategories | GetSelectionCategory () const |
| Targets | GetTarget () const |
| bool | IsArea () const |
| SpellImplicitTargetInfo () | |
| SpellImplicitTargetInfo (uint32 target) | |
Private Attributes | |
| Targets | _target |
Static Private Attributes | |
| static StaticData | _data [TOTAL_SPELL_TARGETS] |
Definition at line 115 of file SpellTargeting.h.
|
inline |
Definition at line 120 of file SpellTargeting.h.
References _target.
|
inline |
Definition at line 121 of file SpellTargeting.h.
References _target.
| float SpellImplicitTargetInfo::CalcDirectionAngle | ( | ) | const |
Definition at line 69 of file SpellTargeting.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(), and Spell::SelectImplicitTargetDestTargets().
| SpellTargetCheckTypes SpellImplicitTargetInfo::GetCheckType | ( | ) | const |
Definition at line 59 of file SpellTargeting.cpp.
References _data, and _target.
Referenced by GetExplicitTargetMask(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), and Spell::SelectImplicitNearbyTargets().
| SpellTargetDirectionTypes SpellImplicitTargetInfo::GetDirectionType | ( | ) | const |
Definition at line 64 of file SpellTargeting.cpp.
References _data, and _target.
Referenced by CalcDirectionAngle().
| uint32 SpellImplicitTargetInfo::GetExplicitTargetMask | ( | bool & | srcSet, |
| bool & | dstSet ) const |
Definition at line 101 of file SpellTargeting.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 54 of file SpellTargeting.cpp.
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), GetExplicitTargetMask(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitConeTargets(), and Spell::SelectImplicitNearbyTargets().
| SpellTargetReferenceTypes SpellImplicitTargetInfo::GetReferenceType | ( | ) | const |
Definition at line 49 of file SpellTargeting.cpp.
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 |
Definition at line 44 of file SpellTargeting.cpp.
References _data, and _target.
Referenced by SpellScript::TargetHook::CheckEffect(), IsArea(), ConditionMgr::isSourceTypeValid(), and Spell::SelectEffectImplicitTargets().
| Targets SpellImplicitTargetInfo::GetTarget | ( | ) | const |
Definition at line 96 of file SpellTargeting.cpp.
References _target.
Referenced by ObjectMgr::AddSpellToTrainer(), GameObject::CastSpell(), SpellScript::TargetHook::CheckEffect(), UnitAI::FillAISpellInfo(), ScriptMgr::FillSpellSummary(), GetExplicitTargetMask(), WorldSession::HandlePetActionHelper(), SpellMgr::LoadSpellLearnSpells(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellTargetPositions(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitCasterObjectTargets(), Spell::SelectImplicitChainTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitDestDestTargets(), and Spell::SelectImplicitTargetDestTargets().
| bool SpellImplicitTargetInfo::IsArea | ( | ) | const |
Definition at line 39 of file SpellTargeting.cpp.
References GetSelectionCategory(), TARGET_SELECT_CATEGORY_AREA, and TARGET_SELECT_CATEGORY_CONE.
|
staticprivate |
Definition at line 185 of file SpellTargeting.h.
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), and GetSelectionCategory().
|
private |
Definition at line 118 of file SpellTargeting.h.
Referenced by GetCheckType(), GetDirectionType(), GetObjectType(), GetReferenceType(), GetSelectionCategory(), GetTarget(), SpellImplicitTargetInfo(), and SpellImplicitTargetInfo().