TrinityCore
Loading...
Searching...
No Matches
AuraApplication Class Reference

#include <SpellAuras.h>

Public Member Functions

Unit * GetTarget () const
 
Aura * GetBase () const
 
uint8 GetSlot () const
 
uint8 GetFlags () const
 
uint8 GetEffectMask () const
 
bool HasEffect (uint8 effect) const
 
bool IsPositive () const
 
bool IsSelfcast () const
 
uint8 GetEffectsToApply () const
 
void UpdateApplyEffectMask (uint8 newEffMask, bool canHandleNewEffects)
 
void SetRemoveMode (AuraRemoveMode mode)
 
AuraRemoveMode GetRemoveMode () const
 
void SetNeedClientUpdate ()
 
bool IsNeedClientUpdate () const
 
void BuildUpdatePacket (WorldPackets::Spells::AuraInfo &auraInfo, bool remove) const
 
void ClientUpdate (bool remove=false)
 
std::string GetDebugInfo () const
 

Private Member Functions

 AuraApplication (Unit *target, Unit *caster, Aura *base, uint8 effMask)
 
void _Remove ()
 
void _InitFlags (Unit *caster, uint8 effMask)
 
void _HandleEffect (uint8 effIndex, bool apply)
 

Private Attributes

Unit *const _target
 
Aura *const _base
 
AuraRemoveMode _removeMode
 
uint8 _slot
 
uint8 _flags
 
uint8 _effectsToApply
 
bool _needClientUpdate
 

Friends

class Unit
 

Detailed Description

Definition at line 54 of file SpellAuras.h.

Constructor & Destructor Documentation

◆ AuraApplication()

AuraApplication::AuraApplication ( Unit *  target,
Unit *  caster,
Aura *  base,
uint8  effMask 
)
explicitprivate

Member Function Documentation

◆ _HandleEffect()

◆ _InitFlags()

◆ _Remove()

void AuraApplication::_Remove ( )
private

◆ BuildUpdatePacket()

◆ ClientUpdate()

◆ GetBase()

◆ GetDebugInfo()

std::string AuraApplication::GetDebugInfo ( ) const

Definition at line 262 of file SpellAuras.cpp.

References GetBase(), Aura::GetDebugInfo(), Unit::GetDebugInfo(), and GetTarget().

◆ GetEffectMask()

uint8 AuraApplication::GetEffectMask ( ) const
inline

◆ GetEffectsToApply()

uint8 AuraApplication::GetEffectsToApply ( ) const
inline

Definition at line 84 of file SpellAuras.h.

Referenced by Spell::EffectApplyAura().

◆ GetFlags()

uint8 AuraApplication::GetFlags ( ) const
inline

◆ GetRemoveMode()

◆ GetSlot()

uint8 AuraApplication::GetSlot ( ) const
inline

Definition at line 77 of file SpellAuras.h.

Referenced by _Remove(), and BuildUpdatePacket().

◆ GetTarget()

Unit * AuraApplication::GetTarget ( ) const
inline

Definition at line 74 of file SpellAuras.h.

Referenced by _HandleEffect(), _InitFlags(), _Remove(), Aura::_Remove(), Unit::_UnapplyAura(), AuraApplication(), ClientUpdate(), GetDebugInfo(), Aura::GetProcEffectMask(), AuraScript::GetTarget(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraConvertRune(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraLinked(), AuraEffect::HandleAuraModAttackPower(), AuraEffect::HandleAuraModAttackPowerOfStatPercent(), AuraEffect::HandleAuraModAttackPowerPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModBlockPercent(), AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModDispelImmunity(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModDodgePercent(), AuraEffect::HandleAuraModEffectImmunity(), AuraEffect::HandleAuraModExpertise(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModFakeInebriation(), AuraEffect::HandleAuraModIncreaseEnergy(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModParryPercent(), AuraEffect::HandleAuraModPetTalentsPoints(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), AuraEffect::HandleAuraModRangedHaste(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModResistenceOfStatPercent(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModScale(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraModSkill(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleAuraModStateImmunity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModTotalThreat(), AuraEffect::HandleAuraModUseNormalSpeed(), AuraEffect::HandleAuraModWeaponCritPercent(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraOpenStable(), AuraEffect::HandleAuraOverrideSpells(), AuraEffect::HandleAuraPreventRegeneratePower(), AuraEffect::HandleAuraRetainComboPoints(), AuraEffect::HandleAuraSetVehicle(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTrackCreatures(), AuraEffect::HandleAuraTrackResources(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraTransform(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleBindSight(), AuraEffect::HandleBreakableCCAuraProc(), AuraEffect::HandleChannelDeathItem(), AuraEffect::HandleCharmConvert(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleDetectAmore(), AuraEffect::HandleEffect(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleForceMoveForward(), AuraEffect::HandleForceReaction(), AuraEffect::HandleModAttackSpeed(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModCharm(), AuraEffect::HandleModCombatSpeedPct(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModDamageDone(), AuraEffect::HandleModDamagePercentDone(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModFear(), AuraEffect::HandleModHealingDone(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModManaRegen(), AuraEffect::HandleModMechanicImmunity(), AuraEffect::HandleModMechanicImmunityMask(), AuraEffect::HandleModMeleeRangedSpeedPct(), AuraEffect::HandleModMeleeSpeedPct(), AuraEffect::HandleModOffhandDamagePercent(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModPowerCost(), AuraEffect::HandleModPowerCostPCT(), AuraEffect::HandleModPowerRegen(), AuraEffect::HandleModRating(), AuraEffect::HandleModRatingFromStat(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModSpellCritChance(), AuraEffect::HandleModSpellCritChanceShool(), AuraEffect::HandleModSpellDamagePercentFromAttackPower(), AuraEffect::HandleModSpellDamagePercentFromStat(), AuraEffect::HandleModSpellHealingPercentFromAttackPower(), AuraEffect::HandleModSpellHealingPercentFromStat(), AuraEffect::HandleModSpellHitChance(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModStealthLevel(), AuraEffect::HandleModTargetResistance(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModThreat(), AuraEffect::HandleModTotalPercentStat(), AuraEffect::HandleModUnattackable(), AuraEffect::HandleNoReagentUseAura(), AuraEffect::HandlePhase(), AuraEffect::HandlePreventFleeing(), AuraEffect::HandlePreventResurrection(), AuraEffect::HandleProcTriggerDamageAuraProc(), AuraEffect::HandleProcTriggerSpellAuraProc(), AuraEffect::HandleProcTriggerSpellWithValueAuraProc(), AuraEffect::HandleRaidProcFromChargeAuraProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), AuraEffect::HandleRangedAmmoHaste(), AuraEffect::HandleShieldBlockValue(), AuraEffect::HandleShieldBlockValuePercent(), AuraEffect::HandleSpiritOfRedemption(), AuraEffect::HandleWaterBreathing(), AuraEffect::PeriodicTick(), and Unit::RemoveAreaAurasDueToLeaveWorld().

◆ HasEffect()

bool AuraApplication::HasEffect ( uint8  effect) const
inline

◆ IsNeedClientUpdate()

bool AuraApplication::IsNeedClientUpdate ( ) const
inline

Definition at line 91 of file SpellAuras.h.

◆ IsPositive()

◆ IsSelfcast()

bool AuraApplication::IsSelfcast ( ) const
inline

Definition at line 82 of file SpellAuras.h.

References AFLAG_SELF_CAST.

Referenced by _InitFlags().

◆ SetNeedClientUpdate()

void AuraApplication::SetNeedClientUpdate ( )
inline

Definition at line 90 of file SpellAuras.h.

Referenced by _HandleEffect(), and AuraApplication().

◆ SetRemoveMode()

void AuraApplication::SetRemoveMode ( AuraRemoveMode  mode)
inline

Definition at line 87 of file SpellAuras.h.

Referenced by Unit::_UnapplyAura().

◆ UpdateApplyEffectMask()

void AuraApplication::UpdateApplyEffectMask ( uint8  newEffMask,
bool  canHandleNewEffects 
)

Friends And Related Symbol Documentation

◆ Unit

friend class Unit
friend

Definition at line 56 of file SpellAuras.h.

Member Data Documentation

◆ _base

Aura* const AuraApplication::_base
private

Definition at line 60 of file SpellAuras.h.

◆ _effectsToApply

uint8 AuraApplication::_effectsToApply
private

Definition at line 64 of file SpellAuras.h.

Referenced by _HandleEffect(), and UpdateApplyEffectMask().

◆ _flags

uint8 AuraApplication::_flags
private

Definition at line 63 of file SpellAuras.h.

Referenced by _HandleEffect(), and _InitFlags().

◆ _needClientUpdate

bool AuraApplication::_needClientUpdate
private

Definition at line 65 of file SpellAuras.h.

Referenced by ClientUpdate().

◆ _removeMode

AuraRemoveMode AuraApplication::_removeMode
private

Definition at line 61 of file SpellAuras.h.

◆ _slot

uint8 AuraApplication::_slot
private

Definition at line 62 of file SpellAuras.h.

Referenced by AuraApplication(), and BuildUpdatePacket().

◆ _target

Unit* const AuraApplication::_target
private

Definition at line 59 of file SpellAuras.h.

Referenced by _Remove(), BuildUpdatePacket(), ClientUpdate(), and UpdateApplyEffectMask().


The documentation for this class was generated from the following files: