AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ThreatRefStatusChangeEvent Class Reference

#include "UnitEvents.h"

Inheritance diagram for ThreatRefStatusChangeEvent:
UnitBaseEvent ThreatMgrEvent

Public Member Functions

 ThreatRefStatusChangeEvent (uint32 pType)
 
 ThreatRefStatusChangeEvent (uint32 pType, HostileReference *pHostileReference)
 
 ThreatRefStatusChangeEvent (uint32 pType, HostileReference *pHostileReference, float pValue)
 
 ThreatRefStatusChangeEvent (uint32 pType, HostileReference *pHostileReference, bool pValue)
 
int32 getIValue () const
 
float getFValue () const
 
bool getBValue () const
 
void setBValue (bool pValue)
 
HostileReferencegetReference () const
 
void setThreatMgr (ThreatMgr *pThreatMgr)
 
ThreatMgrGetThreatMgr () const
 
- Public Member Functions inherited from UnitBaseEvent
 UnitBaseEvent (uint32 pType)
 
uint32 getType () const
 
bool matchesTypeMask (uint32 pMask) const
 
void setType (uint32 pType)
 

Private Attributes

HostileReferenceiHostileReference
 
union {
   float   iFValue
 
   int32   iIValue
 
   bool   iBValue
 
}; 
 
ThreatMgriThreatMgr
 

Detailed Description

Constructor & Destructor Documentation

◆ ThreatRefStatusChangeEvent() [1/4]

ThreatRefStatusChangeEvent::ThreatRefStatusChangeEvent ( uint32  pType)
inline
95: UnitBaseEvent(pType), iThreatMgr(nullptr) { iHostileReference = nullptr; }
Definition: UnitEvents.h:70
HostileReference * iHostileReference
Definition: UnitEvents.h:86
ThreatMgr * iThreatMgr
Definition: UnitEvents.h:93

References iHostileReference.

◆ ThreatRefStatusChangeEvent() [2/4]

ThreatRefStatusChangeEvent::ThreatRefStatusChangeEvent ( uint32  pType,
HostileReference pHostileReference 
)
inline
97: UnitBaseEvent(pType), iThreatMgr(nullptr) { iHostileReference = pHostileReference; }

References iHostileReference.

◆ ThreatRefStatusChangeEvent() [3/4]

ThreatRefStatusChangeEvent::ThreatRefStatusChangeEvent ( uint32  pType,
HostileReference pHostileReference,
float  pValue 
)
inline
99: UnitBaseEvent(pType), iThreatMgr(nullptr) { iHostileReference = pHostileReference; iFValue = pValue; }
float iFValue
Definition: UnitEvents.h:89

References iFValue, and iHostileReference.

◆ ThreatRefStatusChangeEvent() [4/4]

ThreatRefStatusChangeEvent::ThreatRefStatusChangeEvent ( uint32  pType,
HostileReference pHostileReference,
bool  pValue 
)
inline
101: UnitBaseEvent(pType), iThreatMgr(nullptr) { iHostileReference = pHostileReference; iBValue = pValue; }
bool iBValue
Definition: UnitEvents.h:91

References iBValue, and iHostileReference.

Member Function Documentation

◆ getBValue()

bool ThreatRefStatusChangeEvent::getBValue ( ) const
inline
107{ return iBValue; }

References iBValue.

◆ getFValue()

float ThreatRefStatusChangeEvent::getFValue ( ) const
inline
105{ return iFValue; }

References iFValue.

Referenced by ThreatMgr::processThreatEvent().

◆ getIValue()

int32 ThreatRefStatusChangeEvent::getIValue ( ) const
inline
103{ return iIValue; }
int32 iIValue
Definition: UnitEvents.h:90

References iIValue.

◆ getReference()

HostileReference * ThreatRefStatusChangeEvent::getReference ( ) const
inline
111{ return iHostileReference; }

References iHostileReference.

Referenced by ThreatMgr::processThreatEvent().

◆ GetThreatMgr()

ThreatMgr * ThreatRefStatusChangeEvent::GetThreatMgr ( ) const
inline
115{ return iThreatMgr; }

References iThreatMgr.

◆ setBValue()

void ThreatRefStatusChangeEvent::setBValue ( bool  pValue)
inline
109{ iBValue = pValue; }

References iBValue.

◆ setThreatMgr()

void ThreatRefStatusChangeEvent::setThreatMgr ( ThreatMgr pThreatMgr)
inline
113{ iThreatMgr = pThreatMgr; }

References iThreatMgr.

Referenced by ThreatMgr::processThreatEvent().

Member Data Documentation

◆ 

union { ... } ThreatRefStatusChangeEvent::@220

◆ iBValue

bool ThreatRefStatusChangeEvent::iBValue

◆ iFValue

float ThreatRefStatusChangeEvent::iFValue

◆ iHostileReference

HostileReference* ThreatRefStatusChangeEvent::iHostileReference
private

◆ iIValue

int32 ThreatRefStatusChangeEvent::iIValue

Referenced by getIValue().

◆ iThreatMgr

ThreatMgr* ThreatRefStatusChangeEvent::iThreatMgr
private

Referenced by GetThreatMgr(), and setThreatMgr().