![]() |
TrinityCore
|
#include <PhaseShift.h>
Classes | |
| struct | EraseResult |
| struct | PhaseRef |
| struct | UiMapPhaseIdRef |
| struct | VisibleMapIdRef |
Public Types | |
| using | PhaseContainer = Trinity::Containers::FlatSet< PhaseRef > |
| using | VisibleMapIdContainer = std::map< uint32, VisibleMapIdRef > |
| using | UiMapPhaseIdContainer = std::map< uint32, UiMapPhaseIdRef > |
Protected Member Functions | |
| void | ModifyPhasesReferences (PhaseContainer::iterator itr, int32 references) |
| void | UpdateUnphasedFlag () |
| void | UpdatePersonalGuid () |
Protected Attributes | |
| EnumFlag< PhaseShiftFlags > | Flags = PhaseShiftFlags::Unphased |
| ObjectGuid | PersonalGuid |
| PhaseContainer | Phases |
| VisibleMapIdContainer | VisibleMapIds |
| UiMapPhaseIdContainer | UiMapPhaseIds |
| int32 | NonCosmeticReferences = 0 |
| int32 | CosmeticReferences = 0 |
| int32 | PersonalReferences = 0 |
| int32 | DefaultReferences = 0 |
| bool | IsDbPhaseShift = false |
Friends | |
| class | PhasingHandler |
Definition at line 54 of file PhaseShift.h.
Definition at line 85 of file PhaseShift.h.
| using PhaseShift::UiMapPhaseIdContainer = std::map<uint32, UiMapPhaseIdRef> |
Definition at line 87 of file PhaseShift.h.
| using PhaseShift::VisibleMapIdContainer = std::map<uint32, VisibleMapIdRef> |
Definition at line 86 of file PhaseShift.h.
|
default |
|
default |
|
defaultnoexcept |
|
default |
| bool PhaseShift::AddPhase | ( | uint32 | phaseId, |
| PhaseFlags | flags, | ||
| std::vector< Condition > const * | areaConditions, | ||
| int32 | references = 1 |
||
| ) |
Definition at line 28 of file PhaseShift.cpp.
References flags, and ModifyPhasesReferences().
Referenced by PhasingHandler::AddPhaseGroup(), debug_commandscript::HandleDebugSendSetPhaseShiftCommand(), PhasingHandler::InitDbPhaseShift(), PhasingHandler::OnAreaChange(), and PhasingHandler::OnConditionChange().
Definition at line 70 of file PhaseShift.cpp.
References UiMapPhaseIds.
Referenced by PhasingHandler::AddVisibleMapId(), debug_commandscript::HandleDebugSendSetPhaseShiftCommand(), PhasingHandler::OnConditionChange(), and PhasingHandler::OnMapChange().
| bool PhaseShift::AddVisibleMapId | ( | uint32 | visibleMapId, |
| TerrainSwapInfo const * | visibleMapInfo, | ||
| int32 | references = 1 |
||
| ) |
Definition at line 51 of file PhaseShift.cpp.
References VisibleMapIds.
Referenced by debug_commandscript::HandleDebugSendSetPhaseShiftCommand(), PhasingHandler::InitDbVisibleMapId(), PhasingHandler::OnConditionChange(), and PhasingHandler::OnMapChange().
| bool PhaseShift::CanSee | ( | PhaseShift const & | other | ) | const |
Definition at line 108 of file PhaseShift.cpp.
References AlwaysVisible, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::begin(), Cosmetic, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::end(), Flags, EnumFlag< T >::HasFlag(), Trinity::Containers::Intersects(), Inverse, InverseUnphased, NoCosmetic, None, PersonalGuid, Phases, and Unphased.
| void PhaseShift::Clear | ( | ) |
Definition at line 89 of file PhaseShift.cpp.
References ClearPhases(), UiMapPhaseIds, and VisibleMapIds.
| void PhaseShift::ClearPhases | ( | ) |
Definition at line 96 of file PhaseShift.cpp.
References AlwaysVisible, ObjectGuid::Clear(), CosmeticReferences, DefaultReferences, Flags, Inverse, NonCosmeticReferences, PersonalGuid, PersonalReferences, and UpdateUnphasedFlag().
Referenced by Clear(), and PhasingHandler::InitDbPhaseShift().
|
inline |
Definition at line 96 of file PhaseShift.h.
Referenced by MultiPersonalPhaseTracker::LoadGrid(), and MultiPersonalPhaseTracker::UnregisterTrackedObject().
|
inline |
Definition at line 101 of file PhaseShift.h.
Referenced by HasPersonalPhase(), MultiPersonalPhaseTracker::LoadGrid(), PlayerPersonalPhasesTracker::OnOwnerPhasesChanged(), Corpse::SaveToDB(), and boss_volazj::SummonedCreatureDespawn().
|
inline |
Definition at line 111 of file PhaseShift.h.
|
inline |
Definition at line 106 of file PhaseShift.h.
| bool PhaseShift::HasPersonalPhase | ( | ) | const |
Definition at line 197 of file PhaseShift.cpp.
References GetPhases().
Referenced by PhasingHandler::InitDbPersonalOwnership(), MultiPersonalPhaseTracker::LoadGrid(), and PhasingHandler::PrintToChat().
|
inline |
Definition at line 100 of file PhaseShift.h.
References None.
Referenced by modify_commandscript::HandleModifyPhaseCommand(), PhasingHandler::InitDbPhaseShift(), and PlayerPersonalPhasesTracker::OnOwnerPhasesChanged().
|
inline |
Definition at line 110 of file PhaseShift.h.
|
inline |
Definition at line 105 of file PhaseShift.h.
Referenced by ObjectMgr::GetClosestGraveyardInZone(), and modify_commandscript::HandleModifyPhaseCommand().
|
protected |
Definition at line 155 of file PhaseShift.cpp.
References Cosmetic, CosmeticReferences, DEFAULT_PHASE, DefaultReferences, Flags, IsDbPhaseShift, NoCosmetic, NonCosmeticReferences, Personal, PersonalReferences, UpdatePersonalGuid(), and UpdateUnphasedFlag().
Referenced by AddPhase(), PhasingHandler::OnConditionChange(), and RemovePhase().
|
defaultnoexcept |
|
default |
| PhaseShift::EraseResult< PhaseShift::PhaseContainer > PhaseShift::RemovePhase | ( | uint32 | phaseId | ) |
Definition at line 38 of file PhaseShift.cpp.
References ModifyPhasesReferences(), and None.
Referenced by PhasingHandler::OnConditionChange(), and PhasingHandler::RemovePhaseGroup().
| PhaseShift::EraseResult< PhaseShift::UiMapPhaseIdContainer > PhaseShift::RemoveUiMapPhaseId | ( | uint32 | uiMapPhaseId | ) |
Definition at line 77 of file PhaseShift.cpp.
References UiMapPhaseIds.
Referenced by PhasingHandler::OnConditionChange(), and PhasingHandler::RemoveVisibleMapId().
| PhaseShift::EraseResult< PhaseShift::VisibleMapIdContainer > PhaseShift::RemoveVisibleMapId | ( | uint32 | visibleMapId | ) |
Definition at line 58 of file PhaseShift.cpp.
References VisibleMapIds.
|
protected |
Definition at line 191 of file PhaseShift.cpp.
References ObjectGuid::Clear(), PersonalGuid, and PersonalReferences.
Referenced by ModifyPhasesReferences().
|
protected |
Definition at line 181 of file PhaseShift.cpp.
References DefaultReferences, Flags, EnumFlag< T >::HasFlag(), Inverse, InverseUnphased, NonCosmeticReferences, and Unphased.
Referenced by ClearPhases(), and ModifyPhasesReferences().
|
friend |
Definition at line 121 of file PhaseShift.h.
|
protected |
Definition at line 133 of file PhaseShift.h.
Referenced by ClearPhases(), and ModifyPhasesReferences().
|
protected |
Definition at line 135 of file PhaseShift.h.
Referenced by ClearPhases(), ModifyPhasesReferences(), and UpdateUnphasedFlag().
|
protected |
Definition at line 123 of file PhaseShift.h.
Referenced by CanSee(), ClearPhases(), PhasingHandler::FillPartyMemberPhase(), PhasingHandler::InitDbPhaseShift(), ModifyPhasesReferences(), PhasingHandler::PrintToChat(), PhasingHandler::SendToPlayer(), and UpdateUnphasedFlag().
|
protected |
Definition at line 136 of file PhaseShift.h.
Referenced by PhasingHandler::InitDbPersonalOwnership(), PhasingHandler::InitDbPhaseShift(), and ModifyPhasesReferences().
|
protected |
Definition at line 132 of file PhaseShift.h.
Referenced by ClearPhases(), ModifyPhasesReferences(), and UpdateUnphasedFlag().
|
protected |
Definition at line 124 of file PhaseShift.h.
Referenced by PhasingHandler::AddPhaseGroup(), CanSee(), ClearPhases(), PhasingHandler::FillPartyMemberPhase(), PhasingHandler::InitDbPersonalOwnership(), PhasingHandler::OnAreaChange(), PhasingHandler::OnConditionChange(), PhasingHandler::PrintToChat(), PhasingHandler::SendToPlayer(), and UpdatePersonalGuid().
|
protected |
Definition at line 134 of file PhaseShift.h.
Referenced by PhasingHandler::AddPhase(), PhasingHandler::AddPhaseGroup(), ClearPhases(), ModifyPhasesReferences(), PhasingHandler::OnAreaChange(), PhasingHandler::OnConditionChange(), and UpdatePersonalGuid().
|
protected |
Definition at line 125 of file PhaseShift.h.
Referenced by CanSee(), PhasingHandler::FillPartyMemberPhase(), PhasingHandler::FormatPhases(), PhasingHandler::InitDbPhaseShift(), PhasingHandler::OnAreaChange(), PhasingHandler::OnConditionChange(), PhasingHandler::PrintToChat(), and PhasingHandler::SendToPlayer().
|
protected |
Definition at line 127 of file PhaseShift.h.
Referenced by AddUiMapPhaseId(), Clear(), PhasingHandler::PrintToChat(), and RemoveUiMapPhaseId().
|
protected |
Definition at line 126 of file PhaseShift.h.
Referenced by AddVisibleMapId(), Clear(), PhasingHandler::GetTerrainMapId(), PhasingHandler::InitDbVisibleMapId(), PhasingHandler::OnConditionChange(), PhasingHandler::PrintToChat(), and RemoveVisibleMapId().