TrinityCore
Loading...
Searching...
No Matches
SpellEvent Class Reference
+ Inheritance diagram for SpellEvent:

Public Member Functions

 SpellEvent (Spell *spell)
 
 ~SpellEvent ()
 
bool Execute (uint64 e_time, uint32 p_time) override
 
void Abort (uint64 e_time) override
 
bool IsDeletable () const override
 
Spell const * GetSpell () const
 
Trinity::unique_weak_ptr< Spell > GetSpellWeakPtr () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
void ScheduleAbort ()
 

Protected Attributes

Trinity::unique_trackable_ptr< Spell > m_Spell
 

Detailed Description

Definition at line 455 of file Spell.cpp.

Constructor & Destructor Documentation

◆ SpellEvent()

SpellEvent::SpellEvent ( Spell *  spell)
explicit

Definition at line 8361 of file Spell.cpp.

◆ ~SpellEvent()

Member Function Documentation

◆ Abort()

void SpellEvent::Abort ( uint64  e_time)
overridevirtual

Reimplemented from BasicEvent.

Definition at line 8472 of file Spell.cpp.

References Spell::cancel(), Spell::getState(), m_Spell, and SPELL_STATE_FINISHED.

◆ Execute()

◆ GetDebugInfo()

std::string SpellEvent::GetDebugInfo ( ) const
inline

Definition at line 467 of file Spell.cpp.

◆ GetSpell()

Spell const * SpellEvent::GetSpell ( ) const
inline

Definition at line 464 of file Spell.cpp.

◆ GetSpellWeakPtr()

Trinity::unique_weak_ptr< Spell > SpellEvent::GetSpellWeakPtr ( ) const
inline

Definition at line 465 of file Spell.cpp.

Referenced by Spell::GetWeakPtr().

◆ IsDeletable()

bool SpellEvent::IsDeletable ( ) const
overridevirtual

Reimplemented from BasicEvent.

Definition at line 8479 of file Spell.cpp.

References Spell::IsDeletable(), and m_Spell.

Member Data Documentation

◆ m_Spell

Trinity::unique_trackable_ptr<Spell> SpellEvent::m_Spell
protected

Definition at line 470 of file Spell.cpp.

Referenced by Abort(), Execute(), IsDeletable(), and ~SpellEvent().


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