TrinityCore
ThreatReferenceImpl Class Reference
+ Inheritance diagram for ThreatReferenceImpl:

Public Member Functions

 ThreatReferenceImpl (ThreatManager *mgr, Unit *victim)
 
- Public Member Functions inherited from ThreatReference
CreatureGetOwner () const
 
UnitGetVictim () const
 
float GetThreat () const
 
OnlineState GetOnlineState () const
 
bool IsOnline () const
 
bool IsAvailable () const
 
bool IsSuppressed () const
 
bool IsOffline () const
 
TauntState GetTauntState () const
 
bool IsTaunting () const
 
bool IsDetaunted () const
 
void AddThreat (float amount)
 
void ScaleThreat (float factor)
 
void ModifyThreatByPercent (int32 percent)
 
void UpdateOffline ()
 
void ClearThreat ()
 
 ThreatReference (ThreatReference const &)=delete
 
ThreatReferenceoperator= (ThreatReference const &)=delete
 

Public Attributes

ThreatManager::Heap::handle_type _handle
 

Additional Inherited Members

- Public Types inherited from ThreatReference
enum  TauntState : uint32 { TAUNT_STATE_DETAUNT = 0 , TAUNT_STATE_NONE = 1 , TAUNT_STATE_TAUNT = 2 }
 
enum  OnlineState { ONLINE_STATE_ONLINE = 2 , ONLINE_STATE_SUPPRESSED = 1 , ONLINE_STATE_OFFLINE = 0 }
 
- Protected Member Functions inherited from ThreatReference
 ThreatReference (ThreatManager *mgr, Unit *victim)
 
virtual ~ThreatReference ()=default
 
void UnregisterAndFree ()
 
bool ShouldBeOffline () const
 
bool ShouldBeSuppressed () const
 
void UpdateTauntState (TauntState state=TAUNT_STATE_NONE)
 
void HeapNotifyIncreased ()
 
void HeapNotifyDecreased ()
 
- Static Protected Member Functions inherited from ThreatReference
static bool FlagsAllowFighting (Unit const *a, Unit const *b)
 
- Protected Attributes inherited from ThreatReference
Creature *const _owner
 
ThreatManager_mgr
 
Unit *const _victim
 
OnlineState _online
 
float _baseAmount
 
int32 _tempModifier
 
TauntState _taunted
 

Detailed Description

Definition at line 154 of file ThreatManager.cpp.

Constructor & Destructor Documentation

◆ ThreatReferenceImpl()

ThreatReferenceImpl::ThreatReferenceImpl ( ThreatManager mgr,
Unit victim 
)
inlineexplicit

Definition at line 157 of file ThreatManager.cpp.

Member Data Documentation

◆ _handle

ThreatManager::Heap::handle_type ThreatReferenceImpl::_handle

Definition at line 159 of file ThreatManager.cpp.


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