TrinityCore
SpellScript::EffectBase Class Reference

#include <SpellScript.h>

+ Inheritance diagram for SpellScript::EffectBase:

Public Member Functions

 EffectBase (uint8 effIndex, uint16 effName)
 
 EffectBase (EffectBase const &right)=delete
 
 EffectBase (EffectBase &&right) noexcept
 
EffectBaseoperator= (EffectBase const &right)=delete
 
EffectBaseoperator= (EffectBase &&right) noexcept
 
 ~EffectBase ()
 
std::string ToString () const
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const override
 
- Public Member Functions inherited from SpellScriptBase::EffectHook
 EffectHook (uint8 effIndex)
 
 EffectHook (EffectHook const &right)=delete
 
 EffectHook (EffectHook &&right) noexcept
 
EffectHookoperator= (EffectHook const &right)=delete
 
EffectHookoperator= (EffectHook &&right) noexcept
 
virtual ~EffectHook ()
 
uint32 GetAffectedEffectsMask (SpellInfo const *spellInfo) const
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex) const
 
virtual bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) const =0
 
std::string EffIndexToString () const
 

Private Attributes

uint16 _effName
 

Additional Inherited Members

- Protected Attributes inherited from SpellScriptBase::EffectHook
uint8 _effIndex
 

Detailed Description

Definition at line 337 of file SpellScript.h.

Constructor & Destructor Documentation

◆ EffectBase() [1/3]

SpellScript::EffectBase::EffectBase ( uint8  effIndex,
uint16  effName 
)

Definition at line 153 of file SpellScript.cpp.

◆ EffectBase() [2/3]

SpellScript::EffectBase::EffectBase ( EffectBase const &  right)
delete

◆ EffectBase() [3/3]

SpellScript::EffectBase::EffectBase ( EffectBase &&  right)
defaultnoexcept

◆ ~EffectBase()

SpellScript::EffectBase::~EffectBase ( )
default

Member Function Documentation

◆ CheckEffect()

bool SpellScript::EffectBase::CheckEffect ( SpellInfo const *  spellInfo,
uint8  effIndex 
) const
overridevirtual

Implements SpellScriptBase::EffectHook.

Definition at line 173 of file SpellScript.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

SpellScript::EffectBase & SpellScript::EffectBase::operator= ( EffectBase &&  right)
defaultnoexcept

◆ operator=() [2/2]

EffectBase & SpellScript::EffectBase::operator= ( EffectBase const &  right)
delete

◆ ToString()

std::string SpellScript::EffectBase::ToString ( ) const

Definition at line 162 of file SpellScript.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _effName

uint16 SpellScript::EffectBase::_effName
private

Definition at line 349 of file SpellScript.h.


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