TrinityCore
AuraApplication Class Reference

#include <SpellAuras.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

Unit *const _target
 
Aura *const _base
 
AuraRemoveMode _removeMode:8
 
uint8 _slot
 
uint16 _flags
 
uint32 _effectsToApply
 
bool _needClientUpdate:1
 
uint32 _effectMask
 

Friends

class Unit
 

Detailed Description

Definition at line 56 of file SpellAuras.h.

Constructor & Destructor Documentation

◆ AuraApplication()

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

Definition at line 69 of file SpellAuras.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _HandleEffect()

void AuraApplication::_HandleEffect ( uint8  effIndex,
bool  apply 
)
private

Definition at line 156 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _InitFlags()

void AuraApplication::_InitFlags ( Unit caster,
uint32  effMask 
)
private

Definition at line 110 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _Remove()

void AuraApplication::_Remove ( )
private

Definition at line 100 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildUpdatePacket()

void AuraApplication::BuildUpdatePacket ( WorldPackets::Spells::AuraInfo auraInfo,
bool  remove 
)

Definition at line 222 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClientUpdate()

void AuraApplication::ClientUpdate ( bool  remove = false)

Definition at line 284 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBase()

Aura * AuraApplication::GetBase ( ) const
inline

Definition at line 78 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string AuraApplication::GetDebugInfo ( ) const

Definition at line 299 of file SpellAuras.cpp.

+ Here is the call graph for this function:

◆ GetEffectMask()

uint32 AuraApplication::GetEffectMask ( ) const
inline

Definition at line 82 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetEffectsToApply()

uint32 AuraApplication::GetEffectsToApply ( ) const
inline

Definition at line 87 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetFlags()

uint16 AuraApplication::GetFlags ( ) const
inline

Definition at line 81 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetRemoveMode()

AuraRemoveMode AuraApplication::GetRemoveMode ( ) const
inline

Definition at line 91 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetSlot()

uint8 AuraApplication::GetSlot ( ) const
inline

Definition at line 80 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetTarget()

Unit * AuraApplication::GetTarget ( ) const
inline

Definition at line 77 of file SpellAuras.h.

◆ HasEffect()

bool AuraApplication::HasEffect ( uint8  effect) const
inline

Definition at line 83 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ IsNeedClientUpdate()

bool AuraApplication::IsNeedClientUpdate ( ) const
inline

Definition at line 94 of file SpellAuras.h.

◆ IsPositive()

bool AuraApplication::IsPositive ( ) const
inline

Definition at line 84 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ IsSelfcast()

bool AuraApplication::IsSelfcast ( ) const
inline

Definition at line 85 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ SetNeedClientUpdate()

void AuraApplication::SetNeedClientUpdate ( )

Definition at line 213 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetRemoveMode()

void AuraApplication::SetRemoveMode ( AuraRemoveMode  mode)
inline

Definition at line 90 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ UpdateApplyEffectMask()

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

Definition at line 185 of file SpellAuras.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Unit

friend class Unit
friend

Definition at line 58 of file SpellAuras.h.

Member Data Documentation

◆ _base

Aura* const AuraApplication::_base
private

Definition at line 62 of file SpellAuras.h.

◆ _effectMask

uint32 AuraApplication::_effectMask
private

Definition at line 68 of file SpellAuras.h.

◆ _effectsToApply

uint32 AuraApplication::_effectsToApply
private

Definition at line 66 of file SpellAuras.h.

◆ _flags

uint16 AuraApplication::_flags
private

Definition at line 65 of file SpellAuras.h.

◆ _needClientUpdate

bool AuraApplication::_needClientUpdate
private

Definition at line 67 of file SpellAuras.h.

◆ _removeMode

AuraRemoveMode AuraApplication::_removeMode
private

Definition at line 63 of file SpellAuras.h.

◆ _slot

uint8 AuraApplication::_slot
private

Definition at line 64 of file SpellAuras.h.

◆ _target

Unit* const AuraApplication::_target
private

Definition at line 61 of file SpellAuras.h.


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