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

#include <SpellAuras.h>

Public Member Functions

UnitGetTarget () const
 
AuraGetBase () 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 (ByteBuffer &data, 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 46 of file SpellAuras.h.

Constructor & Destructor Documentation

◆ AuraApplication()

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

Definition at line 51 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 164 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,
uint8  effMask 
)
private

Definition at line 127 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 97 of file SpellAuras.cpp.

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

◆ BuildUpdatePacket()

void AuraApplication::BuildUpdatePacket ( ByteBuffer data,
bool  remove 
) const

Definition at line 218 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 251 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 67 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string AuraApplication::GetDebugInfo ( ) const

Definition at line 262 of file SpellAuras.cpp.

+ Here is the call graph for this function:

◆ GetEffectMask()

uint8 AuraApplication::GetEffectMask ( ) const
inline

Definition at line 71 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetEffectsToApply()

uint8 AuraApplication::GetEffectsToApply ( ) const
inline

Definition at line 76 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetFlags()

uint8 AuraApplication::GetFlags ( ) const
inline

Definition at line 70 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetRemoveMode()

AuraRemoveMode AuraApplication::GetRemoveMode ( ) const
inline

Definition at line 80 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetSlot()

uint8 AuraApplication::GetSlot ( ) const
inline

Definition at line 69 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ GetTarget()

Unit * AuraApplication::GetTarget ( ) const
inline

Definition at line 66 of file SpellAuras.h.

◆ HasEffect()

bool AuraApplication::HasEffect ( uint8  effect) const
inline

Definition at line 72 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ IsNeedClientUpdate()

bool AuraApplication::IsNeedClientUpdate ( ) const
inline

Definition at line 83 of file SpellAuras.h.

◆ IsPositive()

bool AuraApplication::IsPositive ( ) const
inline

Definition at line 73 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ IsSelfcast()

bool AuraApplication::IsSelfcast ( ) const
inline

Definition at line 74 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ SetNeedClientUpdate()

void AuraApplication::SetNeedClientUpdate ( )
inline

Definition at line 82 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ SetRemoveMode()

void AuraApplication::SetRemoveMode ( AuraRemoveMode  mode)
inline

Definition at line 79 of file SpellAuras.h.

+ Here is the caller graph for this function:

◆ UpdateApplyEffectMask()

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

Definition at line 190 of file SpellAuras.cpp.

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

Friends And Related Symbol Documentation

◆ Unit

friend class Unit
friend

Definition at line 48 of file SpellAuras.h.

Member Data Documentation

◆ _base

Aura* const AuraApplication::_base
private

Definition at line 52 of file SpellAuras.h.

◆ _effectsToApply

uint8 AuraApplication::_effectsToApply
private

Definition at line 56 of file SpellAuras.h.

◆ _flags

uint8 AuraApplication::_flags
private

Definition at line 55 of file SpellAuras.h.

◆ _needClientUpdate

bool AuraApplication::_needClientUpdate
private

Definition at line 57 of file SpellAuras.h.

◆ _removeMode

AuraRemoveMode AuraApplication::_removeMode
private

Definition at line 53 of file SpellAuras.h.

◆ _slot

uint8 AuraApplication::_slot
private

Definition at line 54 of file SpellAuras.h.

◆ _target

Unit* const AuraApplication::_target
private

Definition at line 51 of file SpellAuras.h.


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