AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ThreatMgr.h"
Private Member Functions | |
void | fireStatusChanged (ThreatRefStatusChangeEvent &threatRefStatusChangeEvent) |
Unit * | GetSourceUnit () |
Private Attributes | |
float | iThreat |
float | iTempThreatModifier |
ObjectGuid | iUnitGuid |
bool | iOnline |
Additional Inherited Members | |
virtual void | targetObjectBuildLink ()=0 |
virtual void | targetObjectDestroyLink ()=0 |
virtual void | sourceObjectDestroyLink ()=0 |
References Object::GetGUID(), iOnline, iTempThreatModifier, iThreat, iUnitGuid, and Reference< Unit, ThreatMgr >::link().
|
inline |
References AddThreat(), and iTempThreatModifier.
Referenced by HostileRefMgr::addTempThreat(), and setTempThreat().
void HostileReference::AddThreat | ( | float | modThreat | ) |
References ThreatMgr::AddThreat(), fireStatusChanged(), Unit::GetCharmerOrOwner(), Object::GetEntry(), Reference< Unit, ThreatMgr >::GetSource(), Reference< Unit, ThreatMgr >::getTarget(), Unit::IsAlive(), IsOnline(), Reference< Unit, ThreatMgr >::isValid(), iThreat, NPC_EYE_OF_KILROGG, UEV_THREAT_REF_THREAT_CHANGE, and updateOnlineStatus().
Referenced by ThreatMgr::_addThreat(), addTempThreat(), ThreatContainer::AddThreat(), addThreatPercent(), npc_pet_mage_mirror_image::InitializeAI(), resetTempThreat(), and SetThreat().
void HostileReference::addThreatPercent | ( | int32 | percent | ) |
References AddPct(), AddThreat(), and iThreat.
Referenced by HostileRefMgr::addThreatPercent().
|
inline |
References removeReference().
|
private |
References Reference< Unit, ThreatMgr >::GetSource(), and ThreatMgr::processThreatEvent().
Referenced by AddThreat(), removeReference(), and setOnlineOfflineState().
Unit * HostileReference::GetOwner | ( | ) | const |
References ThreatMgr::GetOwner(), and Reference< Unit, ThreatMgr >::GetSource().
Referenced by GetSourceUnit().
|
private |
References GetOwner(), and Reference< Unit, ThreatMgr >::GetSource().
Referenced by updateOnlineStatus().
|
inline |
References iTempThreatModifier.
Referenced by HostileRefMgr::addTempThreat(), ThreatMgr::getThreatWithoutTemp(), npc_pet_mage_mirror_image::InitializeAI(), and ThreatMgr::tauntApply().
|
inline |
References iThreat.
Referenced by Spell::EffectTaunt(), ThreatMgr::GetThreat(), ThreatMgr::getThreatWithoutTemp(), debug_commandscript::HandleDebugHostileRefListCommand(), npc_pet_mage_mirror_image::InitializeAI(), Acore::ThreatOrderPred::operator()(), ThreatMgr::processThreatEvent(), ThreatContainer::SelectNextVictim(), setTempThreat(), SetThreat(), and ThreatMgr::tauntApply().
|
inline |
|
inline |
References Reference< Unit, ThreatMgr >::getTarget().
|
inline |
|
inline |
|
inline |
References iOnline.
Referenced by AddThreat(), debug_commandscript::HandleDebugHostileRefListCommand(), and ThreatMgr::processThreatEvent().
|
inline |
Referenced by HostileRefMgr::addTempThreat(), HostileRefMgr::addThreatPercent(), HostileRefMgr::deleteReference(), HostileRefMgr::deleteReferences(), HostileRefMgr::deleteReferencesForFaction(), HostileRefMgr::deleteReferencesOutOfRange(), debug_commandscript::HandleDebugHostileRefListCommand(), npc_pet_mage_mirror_image::InitializeAI(), HostileRefMgr::setOnlineOfflineState(), Unit::SetPhaseMask(), HostileRefMgr::threatAssist(), Map::Update(), HostileRefMgr::updateThreatTables(), and HostileRefMgr::UpdateVisibility().
|
inline |
References getUnitGuid().
void HostileReference::removeReference | ( | ) |
References fireStatusChanged(), Reference< Unit, ThreatMgr >::invalidate(), and UEV_THREAT_REF_REMOVE_FROM_LIST.
Referenced by ClearThreat(), HostileRefMgr::deleteReference(), HostileRefMgr::deleteReferences(), HostileRefMgr::deleteReferencesForFaction(), HostileRefMgr::deleteReferencesOutOfRange(), and HostileRefMgr::UpdateVisibility().
|
inline |
References AddThreat(), and iTempThreatModifier.
Referenced by HostileRefMgr::addTempThreat(), and ThreatMgr::tauntFadeOut().
void HostileReference::setOnlineOfflineState | ( | bool | isOnline | ) |
References fireStatusChanged(), iOnline, and UEV_THREAT_REF_ONLINE_STATUS.
Referenced by ThreatMgr::_addThreat(), HostileRefMgr::setOnlineOfflineState(), sourceObjectDestroyLink(), and updateOnlineStatus().
|
inline |
|
inline |
References AddThreat(), and GetThreat().
|
overridevirtual |
Implements Reference< Unit, ThreatMgr >.
References setOnlineOfflineState().
|
overridevirtual |
Implements Reference< Unit, ThreatMgr >.
References Unit::addHatedBy(), and Reference< Unit, ThreatMgr >::getTarget().
|
overridevirtual |
Implements Reference< Unit, ThreatMgr >.
References Reference< Unit, ThreatMgr >::getTarget(), and Unit::removeHatedBy().
void HostileReference::updateOnlineStatus | ( | ) |
References Reference< Unit, ThreatMgr >::GetSource(), GetSourceUnit(), Reference< Unit, ThreatMgr >::getTarget(), ObjectAccessor::GetUnit(), getUnitGuid(), Unit::isInAccessiblePlaceFor(), Reference< Unit, ThreatMgr >::isValid(), Unit::IsWithinCombatRange(), Reference< Unit, ThreatMgr >::link(), Creature::m_CombatDistance, setOnlineOfflineState(), and Object::ToCreature().
Referenced by AddThreat(), and HostileRefMgr::updateThreatTables().
|
private |
Referenced by HostileReference(), IsAvailable(), IsOffline(), IsOnline(), and setOnlineOfflineState().
|
private |
Referenced by addTempThreat(), getTempThreatModifier(), HostileReference(), and resetTempThreat().
|
private |
Referenced by AddThreat(), addThreatPercent(), GetThreat(), and HostileReference().
|
private |
Referenced by getUnitGuid(), and HostileReference().