TrinityCore
ProcEventInfo Class Reference

#include <Unit.h>

Public Member Functions

 ProcEventInfo (Unit *actor, Unit *actionTarget, Unit *procTarget, uint32 typeMask, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
UnitGetActor ()
 
UnitGetActionTarget () const
 
UnitGetProcTarget () const
 
uint32 GetTypeMask () const
 
uint32 GetSpellTypeMask () const
 
uint32 GetSpellPhaseMask () const
 
uint32 GetHitMask () const
 
SpellInfo const * GetSpellInfo () const
 
SpellSchoolMask GetSchoolMask () const
 
DamageInfoGetDamageInfo () const
 
HealInfoGetHealInfo () const
 
Spell const * GetProcSpell () const
 

Private Attributes

Unit *const _actor
 
Unit *const _actionTarget
 
Unit *const _procTarget
 
uint32 _typeMask
 
uint32 _spellTypeMask
 
uint32 _spellPhaseMask
 
uint32 _hitMask
 
Spell_spell
 
DamageInfo_damageInfo
 
HealInfo_healInfo
 

Constructor & Destructor Documentation

◆ ProcEventInfo()

ProcEventInfo::ProcEventInfo ( Unit actor,
Unit actionTarget,
Unit procTarget,
uint32  typeMask,
uint32  spellTypeMask,
uint32  spellPhaseMask,
uint32  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)
264  :
265  _actor(actor), _actionTarget(actionTarget), _procTarget(procTarget),
266  _typeMask(typeMask), _spellTypeMask(spellTypeMask),
267  _spellPhaseMask(spellPhaseMask), _hitMask(hitMask), _spell(spell),
268  _damageInfo(damageInfo), _healInfo(healInfo)
269 { }
Spell * _spell
Definition: Unit.h:509
DamageInfo * _damageInfo
Definition: Unit.h:510
uint32 _hitMask
Definition: Unit.h:508
Unit *const _actor
Definition: Unit.h:502
uint32 _spellTypeMask
Definition: Unit.h:506
Unit *const _procTarget
Definition: Unit.h:504
Unit *const _actionTarget
Definition: Unit.h:503
uint32 _typeMask
Definition: Unit.h:505
HealInfo * _healInfo
Definition: Unit.h:511
uint32 _spellPhaseMask
Definition: Unit.h:507

Member Function Documentation

◆ GetActionTarget()

Unit* ProcEventInfo::GetActionTarget ( ) const
inline
485 { return _actionTarget; }
Unit *const _actionTarget
Definition: Unit.h:503
+ Here is the caller graph for this function:

◆ GetActor()

Unit* ProcEventInfo::GetActor ( )
inline
484 { return _actor; }
Unit *const _actor
Definition: Unit.h:502
+ Here is the caller graph for this function:

◆ GetDamageInfo()

DamageInfo* ProcEventInfo::GetDamageInfo ( ) const
inline
496 { return _damageInfo; }
DamageInfo * _damageInfo
Definition: Unit.h:510
+ Here is the caller graph for this function:

◆ GetHealInfo()

HealInfo* ProcEventInfo::GetHealInfo ( ) const
inline
497 { return _healInfo; }
HealInfo * _healInfo
Definition: Unit.h:511
+ Here is the caller graph for this function:

◆ GetHitMask()

uint32 ProcEventInfo::GetHitMask ( ) const
inline
491 { return _hitMask; }
uint32 _hitMask
Definition: Unit.h:508
+ Here is the caller graph for this function:

◆ GetProcSpell()

Spell const* ProcEventInfo::GetProcSpell ( ) const
inline
499 { return _spell; }
Spell * _spell
Definition: Unit.h:509
+ Here is the caller graph for this function:

◆ GetProcTarget()

Unit* ProcEventInfo::GetProcTarget ( ) const
inline
486 { return _procTarget; }
Unit *const _procTarget
Definition: Unit.h:504
+ Here is the caller graph for this function:

◆ GetSchoolMask()

SpellSchoolMask ProcEventInfo::GetSchoolMask ( ) const
283 {
284  if (_spell)
285  return _spell->GetSpellInfo()->GetSchoolMask();
286  if (_damageInfo)
287  return _damageInfo->GetSchoolMask();
288  if (_healInfo)
289  return _healInfo->GetSchoolMask();
290  return SPELL_SCHOOL_MASK_NONE;
291 }
Spell * _spell
Definition: Unit.h:509
DamageInfo * _damageInfo
Definition: Unit.h:510
SpellInfo const * GetSpellInfo() const
Definition: Spell.h:603
SpellSchoolMask GetSchoolMask() const
Definition: SpellInfo.cpp:2344
SpellSchoolMask GetSchoolMask() const
Definition: Unit.h:434
Definition: SharedDefines.h:305
HealInfo * _healInfo
Definition: Unit.h:511
SpellSchoolMask GetSchoolMask() const
Definition: Unit.h:472
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSpellInfo()

SpellInfo const * ProcEventInfo::GetSpellInfo ( ) const
272 {
273  if (_spell)
274  return _spell->GetSpellInfo();
275  if (_damageInfo)
276  return _damageInfo->GetSpellInfo();
277  if (_healInfo)
278  return _healInfo->GetSpellInfo();
279  return nullptr;
280 }
Spell * _spell
Definition: Unit.h:509
DamageInfo * _damageInfo
Definition: Unit.h:510
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:433
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:471
SpellInfo const * GetSpellInfo() const
Definition: Spell.h:603
HealInfo * _healInfo
Definition: Unit.h:511
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSpellPhaseMask()

uint32 ProcEventInfo::GetSpellPhaseMask ( ) const
inline
490 { return _spellPhaseMask; }
uint32 _spellPhaseMask
Definition: Unit.h:507
+ Here is the caller graph for this function:

◆ GetSpellTypeMask()

uint32 ProcEventInfo::GetSpellTypeMask ( ) const
inline
489 { return _spellTypeMask; }
uint32 _spellTypeMask
Definition: Unit.h:506
+ Here is the caller graph for this function:

◆ GetTypeMask()

uint32 ProcEventInfo::GetTypeMask ( ) const
inline
488 { return _typeMask; }
uint32 _typeMask
Definition: Unit.h:505
+ Here is the caller graph for this function:

Member Data Documentation

◆ _actionTarget

Unit* const ProcEventInfo::_actionTarget
private

◆ _actor

Unit* const ProcEventInfo::_actor
private

◆ _damageInfo

DamageInfo* ProcEventInfo::_damageInfo
private

◆ _healInfo

HealInfo* ProcEventInfo::_healInfo
private

◆ _hitMask

uint32 ProcEventInfo::_hitMask
private

◆ _procTarget

Unit* const ProcEventInfo::_procTarget
private

◆ _spell

Spell* ProcEventInfo::_spell
private

◆ _spellPhaseMask

uint32 ProcEventInfo::_spellPhaseMask
private

◆ _spellTypeMask

uint32 ProcEventInfo::_spellTypeMask
private

◆ _typeMask

uint32 ProcEventInfo::_typeMask
private

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