TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 constGetSpellInfo () const
 
SpellSchoolMask GetSchoolMask () const
 
DamageInfoGetDamageInfo () const
 
HealInfoGetHealInfo () 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 ( Unit actor,
Unit actionTarget,
Unit procTarget,
uint32  typeMask,
uint32  spellTypeMask,
uint32  spellPhaseMask,
uint32  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)
160  :
161  _actor(actor), _actionTarget(actionTarget), _procTarget(procTarget),
162  _typeMask(typeMask), _spellTypeMask(spellTypeMask),
163  _spellPhaseMask(spellPhaseMask), _hitMask(hitMask), _spell(spell),
164  _damageInfo(damageInfo), _healInfo(healInfo)
165 { }
Spell * _spell
Definition: Unit.h:1014
DamageInfo * _damageInfo
Definition: Unit.h:1015
uint32 _hitMask
Definition: Unit.h:1013
Unit *const _actor
Definition: Unit.h:1007
uint32 _spellTypeMask
Definition: Unit.h:1011
Unit *const _procTarget
Definition: Unit.h:1009
Unit *const _actionTarget
Definition: Unit.h:1008
uint32 _typeMask
Definition: Unit.h:1010
HealInfo * _healInfo
Definition: Unit.h:1016
uint32 _spellPhaseMask
Definition: Unit.h:1012

Member Function Documentation

Unit* ProcEventInfo::GetActionTarget ( ) const
inline
992 { return _actionTarget; }
Unit *const _actionTarget
Definition: Unit.h:1008

+ Here is the caller graph for this function:

Unit* ProcEventInfo::GetActor ( )
inline
991 { return _actor; }
Unit *const _actor
Definition: Unit.h:1007

+ Here is the caller graph for this function:

DamageInfo* ProcEventInfo::GetDamageInfo ( ) const
inline
1003 { return _damageInfo; }
DamageInfo * _damageInfo
Definition: Unit.h:1015

+ Here is the caller graph for this function:

HealInfo* ProcEventInfo::GetHealInfo ( ) const
inline
1004 { return _healInfo; }
HealInfo * _healInfo
Definition: Unit.h:1016

+ Here is the caller graph for this function:

uint32 ProcEventInfo::GetHitMask ( ) const
inline
998 { return _hitMask; }
uint32 _hitMask
Definition: Unit.h:1013

+ Here is the caller graph for this function:

Unit* ProcEventInfo::GetProcTarget ( ) const
inline
993 { return _procTarget; }
Unit *const _procTarget
Definition: Unit.h:1009

+ Here is the caller graph for this function:

SpellSchoolMask ProcEventInfo::GetSchoolMask ( ) const

WORKAROUND: unfinished new proc system

186 {
188  if (_spell)
189  return _spell->GetSpellInfo()->GetSchoolMask();
190  if (_damageInfo)
191  return _damageInfo->GetSchoolMask();
192  if (_healInfo)
193  return _healInfo->GetSchoolMask();
194  return SPELL_SCHOOL_MASK_NONE;
195 }
Spell * _spell
Definition: Unit.h:1014
DamageInfo * _damageInfo
Definition: Unit.h:1015
SpellSchoolMask GetSchoolMask() const
Definition: Unit.h:946
SpellInfo const * GetSpellInfo() const
Definition: Spell.h:614
SpellSchoolMask GetSchoolMask() const
Definition: SpellInfo.cpp:2131
Definition: SharedDefines.h:287
SpellSchoolMask GetSchoolMask() const
Definition: Unit.h:981
HealInfo * _healInfo
Definition: Unit.h:1016

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SpellInfo const * ProcEventInfo::GetSpellInfo ( ) const

WORKAROUND: unfinished new proc system

174 {
176  if (_spell)
177  return _spell->GetSpellInfo();
178  if (_damageInfo)
179  return _damageInfo->GetSpellInfo();
180  if (_healInfo)
181  return _healInfo->GetSpellInfo();
182  return nullptr;
183 }
Spell * _spell
Definition: Unit.h:1014
DamageInfo * _damageInfo
Definition: Unit.h:1015
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:945
SpellInfo const * GetSpellInfo() const
Definition: Spell.h:614
HealInfo * _healInfo
Definition: Unit.h:1016
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:980

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 ProcEventInfo::GetSpellPhaseMask ( ) const
inline
997 { return _spellPhaseMask; }
uint32 _spellPhaseMask
Definition: Unit.h:1012

+ Here is the caller graph for this function:

uint32 ProcEventInfo::GetSpellTypeMask ( ) const
inline
996 { return _spellTypeMask; }
uint32 _spellTypeMask
Definition: Unit.h:1011

+ Here is the caller graph for this function:

uint32 ProcEventInfo::GetTypeMask ( ) const
inline
995 { return _typeMask; }
uint32 _typeMask
Definition: Unit.h:1010

+ Here is the caller graph for this function:

Member Data Documentation

Unit* const ProcEventInfo::_actionTarget
private
Unit* const ProcEventInfo::_actor
private
DamageInfo* ProcEventInfo::_damageInfo
private
HealInfo* ProcEventInfo::_healInfo
private
uint32 ProcEventInfo::_hitMask
private
Unit* const ProcEventInfo::_procTarget
private
Spell* ProcEventInfo::_spell
private
uint32 ProcEventInfo::_spellPhaseMask
private
uint32 ProcEventInfo::_spellTypeMask
private
uint32 ProcEventInfo::_typeMask
private

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