TrinityCore
|
Public Member Functions | |
ThreatReferenceImpl (ThreatManager *mgr, Unit *victim) | |
Public Member Functions inherited from ThreatReference | |
Creature * | GetOwner () const |
Unit * | GetVictim () 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 | |
ThreatReference & | operator= (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 |
Definition at line 154 of file ThreatManager.cpp.
|
inlineexplicit |
Definition at line 157 of file ThreatManager.cpp.
ThreatManager::Heap::handle_type ThreatReferenceImpl::_handle |
Definition at line 159 of file ThreatManager.cpp.