AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "HostileRefMgr.h"
Private Attributes | |
Unit * | iOwner |
Additional Inherited Members | |
Public Types inherited from RefMgr< Unit, ThreatMgr > | |
typedef LinkedListHead::Iterator< Reference< Unit, ThreatMgr > > | iterator |
Public Types inherited from LinkedListHead | |
typedef Iterator< LinkedListElement > | iterator |
|
inlineexplicit |
|
override |
References deleteReferences().
void HostileRefMgr::addTempThreat | ( | float | threat, |
bool | apply | ||
) |
References HostileReference::addTempThreat(), getFirst(), HostileReference::getTempThreatModifier(), HostileReference::next(), and HostileReference::resetTempThreat().
Referenced by AuraEffect::HandleAuraModTotalThreat().
void HostileRefMgr::addThreatPercent | ( | int32 | percent | ) |
References HostileReference::addThreatPercent(), getFirst(), and HostileReference::next().
Referenced by Spell::EffectSanctuary(), and AuraEffect::HandleFeignDeath().
void HostileRefMgr::deleteReference | ( | Unit * | creature | ) |
References getFirst(), ThreatMgr::GetOwner(), Reference< TO, FROM >::GetSource(), HostileReference::next(), and HostileReference::removeReference().
void HostileRefMgr::deleteReferences | ( | bool | removeFromMap = false | ) |
References getFirst(), Unit::GetOwner(), Reference< TO, FROM >::GetSource(), HostileReference::next(), HostileReference::removeReference(), and Object::ToCreature().
Referenced by PetAI::_stopAttack(), Unit::CleanupBeforeRemoveFromMap(), misc_commandscript::HandleCombatStopCommand(), AuraEffect::HandleFeignDeath(), WorldSession::HandleMoveWorldportAck(), Unit::Kill(), WorldSession::LogoutPlayer(), Map::RemovePlayerFromMap(), Unit::setDeathState(), and ~HostileRefMgr().
void HostileRefMgr::deleteReferencesForFaction | ( | uint32 | faction | ) |
References FactionTemplateEntry::faction, Unit::GetFactionTemplateEntry(), getFirst(), ThreatMgr::GetOwner(), Reference< TO, FROM >::GetSource(), HostileReference::next(), and HostileReference::removeReference().
Referenced by Unit::StopAttackFaction().
void HostileRefMgr::deleteReferencesOutOfRange | ( | float | range | ) |
References Position::GetExactDist2dSq(), getFirst(), GetOwner(), ThreatMgr::GetOwner(), Reference< TO, FROM >::GetSource(), WorldObject::isActiveObject(), HostileReference::next(), and HostileReference::removeReference().
Referenced by Player::Update().
|
inline |
Referenced by addTempThreat(), addThreatPercent(), deleteReference(), deleteReferences(), deleteReferencesForFaction(), deleteReferencesOutOfRange(), debug_commandscript::HandleDebugHostileRefListCommand(), npc_pet_mage_mirror_image::InitializeAI(), setOnlineOfflineState(), Unit::SetPhaseMask(), threatAssist(), Map::Update(), updateThreatTables(), and UpdateVisibility().
|
inline |
void HostileRefMgr::setOnlineOfflineState | ( | bool | isOnline | ) |
References getFirst(), HostileReference::next(), and HostileReference::setOnlineOfflineState().
Referenced by Player::CleanupAfterTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), FlightPathMovementGenerator::DoReset(), npc_toc5_player_vehicle::npc_toc5_player_vehicleAI::Reset(), Player::SetGameMaster(), Player::SetGMVisible(), and Unit::SetPhaseMask().
void HostileRefMgr::setOnlineOfflineState | ( | Unit * | creature, |
bool | isOnline | ||
) |
References getFirst(), ThreatMgr::GetOwner(), Reference< TO, FROM >::GetSource(), HostileReference::next(), and HostileReference::setOnlineOfflineState().
void HostileRefMgr::threatAssist | ( | Unit * | victim, |
float | baseThreat, | ||
SpellInfo const * | threatSpell = nullptr |
||
) |
References ThreatCalcHelper::calcThreat(), ThreatMgr::DoAddThreat(), getFirst(), ThreatMgr::GetOwner(), SpellInfo::GetSchoolMask(), LinkedListHead::getSize(), Reference< TO, FROM >::GetSource(), ThreatCalcHelper::isValidProcess(), HostileReference::next(), SPELL_SCHOOL_MASK_NORMAL, and Object::ToCreature().
Referenced by Spell::DoAllEffectOnTarget(), Spell::DoSpellHitOnUnit(), Spell::EffectDispel(), Spell::EffectDispelMechanic(), Unit::EnergizeBySpell(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and Spell::HandleThreatSpells().
void HostileRefMgr::updateThreatTables | ( | ) |
References getFirst(), HostileReference::next(), and HostileReference::updateOnlineStatus().
Referenced by Player::SetInWater().
void HostileRefMgr::UpdateVisibility | ( | bool | checkThreat | ) |
References getFirst(), Reference< TO, FROM >::GetSource(), ThreatMgr::GetThreatListSize(), HostileReference::next(), and HostileReference::removeReference().
Referenced by Spell::EffectSanctuary().
|
private |
Referenced by GetOwner(), and HostileRefMgr().