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

Public Member Functions

 spell_algalon_big_bang_SpellScript ()
 
- Public Member Functions inherited from SpellScript
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Spell *spell)
 
void _InitHit ()
 
bool _IsEffectPrevented (SpellEffIndex effIndex)
 
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex)
 
void _PrepareScriptCall (SpellScriptHookType hookType)
 
void _FinishScriptCall ()
 
bool IsInCheckCastHook () const
 
bool IsInTargetHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
UnitGetCaster ()
 
UnitGetOriginalCaster ()
 
SpellInfo constGetSpellInfo ()
 
SpellValue constGetSpellValue ()
 
SpellEffectInfo constGetEffectInfo (SpellEffIndex) const
 
WorldLocation constGetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObjectGetExplTargetWorldObject ()
 
UnitGetExplTargetUnit ()
 
GameObjectGetExplTargetGObj ()
 
ItemGetExplTargetItem ()
 
UnitGetHitUnit ()
 
CreatureGetHitCreature ()
 
PlayerGetHitPlayer ()
 
ItemGetHitItem ()
 
GameObjectGetHitGObj ()
 
WorldLocationGetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
SpellGetSpell ()
 
AuraGetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo constGetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo constGetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
virtual void _Register ()
 
virtual void _Unload ()
 
virtual void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const_GetScriptName () const
 
virtual bool Validate (SpellInfo const *)
 
virtual void Unload ()
 

Private Member Functions

 PrepareSpellScript (spell_algalon_big_bang_SpellScript)
 
bool Load () override
 
void CountTargets (std::list< WorldObject * > &targets)
 
void CheckTargets ()
 
void Register () override
 

Private Attributes

uint32 _targetCount
 

Additional Inherited Members

- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< EffectHandlerOnEffectSuccessfulDispel
 
HookList< HitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList
< ObjectAreaTargetSelectHandler
OnObjectAreaTargetSelect
 
HookList
< ObjectTargetSelectHandler
OnObjectTargetSelect
 
HookList
< DestinationTargetSelectHandler
OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string constm_scriptName
 
uint32 m_scriptSpellId
 

Constructor & Destructor Documentation

spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::spell_algalon_big_bang_SpellScript ( )
inline
1214  {
1215  _targetCount = 0;
1216  }
uint32 _targetCount
Definition: boss_algalon_the_observer.cpp:1241

Member Function Documentation

void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CheckTargets ( )
inlineprivate
1230  {
1231  if (!_targetCount)
1233  }
uint32 _targetCount
Definition: boss_algalon_the_observer.cpp:1241
virtual void DoAction(int32)
Definition: UnitAI.h:138
UnitAI * GetAI()
Definition: Unit.h:1331
Definition: boss_algalon_the_observer.cpp:160
Unit * GetCaster()
Definition: SpellScript.cpp:394

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CountTargets ( std::list< WorldObject * > &  targets)
inlineprivate
1225  {
1226  _targetCount = targets.size();
1227  }
uint32 _targetCount
Definition: boss_algalon_the_observer.cpp:1241

+ Here is the caller graph for this function:

bool spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::Load ( )
inlineoverrideprivatevirtual

Reimplemented from _SpellScript.

1220  {
1221  return GetCaster()->GetTypeId() == TYPEID_UNIT && GetCaster()->IsAIEnabled;
1222  }
Definition: ObjectGuid.h:32
bool IsAIEnabled
Definition: Unit.h:2161
TypeID GetTypeId() const
Definition: Object.h:113
Unit * GetCaster()
Definition: SpellScript.cpp:394

+ Here is the call graph for this function:

spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::PrepareSpellScript ( spell_algalon_big_bang_SpellScript  )
private
void spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1236  {
1239  }
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:310
Definition: SharedDefines.h:28
#define SpellCastFn(F)
Definition: SpellScript.h:283
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition: SpellScript.h:311
void CheckTargets()
Definition: boss_algalon_the_observer.cpp:1229
Definition: SharedDefines.h:1885
HookList< CastHandler > AfterCast
Definition: SpellScript.h:282
void CountTargets(std::list< WorldObject * > &targets)
Definition: boss_algalon_the_observer.cpp:1224

+ Here is the call graph for this function:

Member Data Documentation

uint32 spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::_targetCount
private

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