TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spell_item_defibrillate Class Reference

Classes

class  spell_item_defibrillate_SpellScript
 

Public Member Functions

 spell_item_defibrillate (char const *name, uint8 chance, uint32 failSpell=0)
 
SpellScriptGetSpellScript () const override
 
- Public Member Functions inherited from SpellScriptLoader
virtual AuraScriptGetAuraScript () const
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Private Attributes

uint8 _chance
 
uint32 _failSpell
 

Additional Inherited Members

- Protected Member Functions inherited from SpellScriptLoader
 SpellScriptLoader (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

spell_item_defibrillate::spell_item_defibrillate ( char const name,
uint8  chance,
uint32  failSpell = 0 
)
inline
216 : SpellScriptLoader(name), _chance(chance), _failSpell(failSpell) { }
uint32 _failSpell
Definition: spell_item.cpp:259
uint8 _chance
Definition: spell_item.cpp:258
SpellScriptLoader(const char *name)
Definition: ScriptMgr.cpp:1523

Member Function Documentation

SpellScript* spell_item_defibrillate::GetSpellScript ( ) const
inlineoverridevirtual

Reimplemented from SpellScriptLoader.

253  {
254  return new spell_item_defibrillate_SpellScript(_chance, _failSpell);
255  }
uint32 _failSpell
Definition: spell_item.cpp:259
uint8 _chance
Definition: spell_item.cpp:258

Member Data Documentation

uint8 spell_item_defibrillate::_chance
private
uint32 spell_item_defibrillate::_failSpell
private

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