AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Reference.h"
Public Member Functions | |
Reference () | |
virtual | ~Reference ()=default |
void | link (TO *toObj, FROM *fromObj) |
void | unlink () |
void | invalidate () |
bool | isValid () const |
Reference< TO, FROM > * | next () |
Reference< TO, FROM > const * | next () const |
Reference< TO, FROM > * | prev () |
Reference< TO, FROM > const * | prev () const |
Reference< TO, FROM > * | nocheck_next () |
Reference< TO, FROM > const * | nocheck_next () const |
Reference< TO, FROM > * | nocheck_prev () |
Reference< TO, FROM > const * | nocheck_prev () const |
TO * | operator-> () const |
TO * | getTarget () const |
FROM * | GetSource () const |
Public Member Functions inherited from LinkedListElement | |
LinkedListElement ()=default | |
~LinkedListElement () | |
bool | hasNext () const |
bool | hasPrev () const |
bool | isInList () const |
LinkedListElement * | next () |
LinkedListElement const * | next () const |
LinkedListElement * | prev () |
LinkedListElement const * | prev () const |
LinkedListElement * | nocheck_next () |
LinkedListElement const * | nocheck_next () const |
LinkedListElement * | nocheck_prev () |
LinkedListElement const * | nocheck_prev () const |
void | delink () |
void | insertBefore (LinkedListElement *pElem) |
void | insertAfter (LinkedListElement *pElem) |
Protected Member Functions | |
virtual void | targetObjectBuildLink ()=0 |
virtual void | targetObjectDestroyLink ()=0 |
virtual void | sourceObjectDestroyLink ()=0 |
Private Attributes | |
TO * | iRefTo |
FROM * | iRefFrom |
|
inline |
References Reference< TO, FROM >::iRefFrom, and Reference< TO, FROM >::iRefTo.
|
inline |
References Reference< TO, FROM >::iRefFrom.
Referenced by Group::CanJoinBattlegroundQueue(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::ChromieWhisper(), HostileRefMgr::deleteReference(), HostileRefMgr::deleteReferences(), HostileRefMgr::deleteReferencesForFaction(), HostileRefMgr::deleteReferencesOutOfRange(), npc_arthas::npc_arthasAI::DoAction(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::GetCreatureEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetCreatureEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetGameObjectEntry(), debug_commandscript::HandleDebugHostileRefListCommand(), npc_pet_mage_mirror_image::InitializeAI(), boss_apothecary_hummel::boss_apothecary_hummelAI::JustDied(), npc_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_ahune::JustDied(), boss_four_horsemen::boss_four_horsemenAI::JustDied(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnCreatureCreate(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), HostileRefMgr::setOnlineOfflineState(), Unit::SetPhaseMask(), HostileRefMgr::threatAssist(), Map::Update(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), npc_arthas::npc_arthasAI::UpdateAI(), and HostileRefMgr::UpdateVisibility().
|
inline |
References Reference< TO, FROM >::iRefTo.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), Player::GetGroup(), ThreatMgr::getHostileTarget(), Player::GetOriginalGroup(), ChaseMovementGenerator< T >::GetTarget(), FollowMovementGenerator< T >::GetTarget(), and ThreatContainer::SelectNextVictim().
|
inline |
References LinkedListElement::delink(), Reference< TO, FROM >::iRefTo, and Reference< TO, FROM >::sourceObjectDestroyLink().
|
inline |
References Reference< TO, FROM >::iRefTo.
Referenced by Group::CountTheRoll(), GridObject< T >::IsInGrid(), and Reference< TO, FROM >::link().
|
inline |
References ASSERT, Reference< TO, FROM >::iRefFrom, Reference< TO, FROM >::iRefTo, Reference< TO, FROM >::isValid(), Reference< TO, FROM >::targetObjectBuildLink(), and Reference< TO, FROM >::unlink().
Referenced by GridObject< T >::AddToGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetGroup(), Player::SetMap(), Player::SetOriginalGroup(), and TargetedMovementGeneratorBase::TargetedMovementGeneratorBase().
References LinkedListElement::next().
Referenced by GroupReference::next(), and MapReference::next().
|
inline |
References LinkedListElement::next().
|
inline |
References LinkedListElement::nocheck_next().
|
inline |
References LinkedListElement::nocheck_next().
|
inline |
References LinkedListElement::nocheck_prev().
Referenced by MapReference::nocheck_prev(), and MapReference::nockeck_prev().
|
inline |
References LinkedListElement::nocheck_prev().
|
inline |
References Reference< TO, FROM >::iRefTo.
References LinkedListElement::prev().
|
inline |
References LinkedListElement::prev().
|
protectedpure virtual |
Implemented in HostileReference, GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< Player >, GridReference< T >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GroupReference, LootValidatorRef, MapReference, and FollowerReference.
Referenced by Reference< TO, FROM >::invalidate().
|
protectedpure virtual |
Implemented in Roll, HostileReference, GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< Player >, GridReference< T >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GroupReference, MapReference, and FollowerReference.
Referenced by Reference< TO, FROM >::link().
|
protectedpure virtual |
Implemented in HostileReference, GridReference< OBJECT >, GridReference< Corpse >, GridReference< Creature >, GridReference< DynamicObject >, GridReference< GameObject >, GridReference< Player >, GridReference< T >, GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > >, GroupReference, LootValidatorRef, MapReference, and FollowerReference.
Referenced by Reference< TO, FROM >::unlink().
|
inline |
References LinkedListElement::delink(), Reference< TO, FROM >::iRefFrom, Reference< TO, FROM >::iRefTo, and Reference< TO, FROM >::targetObjectDestroyLink().
Referenced by Reference< TO, FROM >::link(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), GridObject< T >::RemoveFromGrid(), Player::ResetMap(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetGroup(), and Player::SetOriginalGroup().
|
private |
|
private |