TrinityCore
PhasingHandler Class Reference

#include <PhasingHandler.h>

Classes

class  ControlledUnitVisitor
 

Static Public Member Functions

static void AddPhase (WorldObject *object, uint32 phaseId, bool updateVisibility)
 
static void RemovePhase (WorldObject *object, uint32 phaseId, bool updateVisibility)
 
static void AddPhaseGroup (WorldObject *object, uint32 phaseGroupId, bool updateVisibility)
 
static void RemovePhaseGroup (WorldObject *object, uint32 phaseGroupId, bool updateVisibility)
 
static void AddVisibleMapId (WorldObject *object, uint32 visibleMapId)
 
static void RemoveVisibleMapId (WorldObject *object, uint32 visibleMapId)
 
static void ResetPhaseShift (WorldObject *object)
 
static void InheritPhaseShift (WorldObject *target, WorldObject const *source)
 
static void OnMapChange (WorldObject *object)
 
static void OnAreaChange (WorldObject *object)
 
static bool OnConditionChange (WorldObject *object, bool updateVisibility=true)
 
static void SendToPlayer (Player const *player, PhaseShift const &phaseShift)
 
static void SendToPlayer (Player const *player)
 
static void FillPartyMemberPhase (WorldPackets::Party::PartyMemberPhaseStates *partyMemberPhases, PhaseShift const &phaseShift)
 
static PhaseShift const & GetEmptyPhaseShift ()
 
static PhaseShift const & GetAlwaysVisiblePhaseShift ()
 
static void InitDbPhaseShift (PhaseShift &phaseShift, uint8 phaseUseFlags, uint16 phaseId, uint32 phaseGroupId)
 
static void InitDbPersonalOwnership (PhaseShift &phaseShift, ObjectGuid const &personalGuid)
 
static void InitDbVisibleMapId (PhaseShift &phaseShift, int32 visibleMapId)
 
static bool InDbPhaseShift (WorldObject const *object, uint8 phaseUseFlags, uint16 phaseId, uint32 phaseGroupId)
 
static uint32 GetTerrainMapId (PhaseShift const &phaseShift, uint32 mapId, TerrainInfo const *terrain, float x, float y)
 
static void SetAlwaysVisible (WorldObject *object, bool apply, bool updateVisibility)
 
static void SetInversed (WorldObject *object, bool apply, bool updateVisibility)
 
static void PrintToChat (ChatHandler *chat, WorldObject const *target)
 
static std::string FormatPhases (PhaseShift const &phaseShift)
 
static bool IsPersonalPhase (uint32 phaseId)
 

Static Private Member Functions

static void AddPhase (WorldObject *object, uint32 phaseId, ObjectGuid const &personalGuid, bool updateVisibility, ControlledUnitVisitor &visitor)
 
static void RemovePhase (WorldObject *object, uint32 phaseId, bool updateVisibility, ControlledUnitVisitor &visitor)
 
static void AddPhaseGroup (WorldObject *object, std::vector< uint32 > const *phasesInGroup, ObjectGuid const &personalGuid, bool updateVisibility, ControlledUnitVisitor &visitor)
 
static void RemovePhaseGroup (WorldObject *object, std::vector< uint32 > const *phasesInGroup, bool updateVisibility, ControlledUnitVisitor &visitor)
 
static void AddVisibleMapId (WorldObject *object, uint32 visibleMapId, ControlledUnitVisitor &visitor)
 
static void RemoveVisibleMapId (WorldObject *object, uint32 visibleMapId, ControlledUnitVisitor &visitor)
 
static void UpdateVisibilityIfNeeded (WorldObject *object, bool updateVisibility, bool changed)
 

Private Attributes

friend ControlledUnitVisitor
 

Detailed Description

Definition at line 39 of file PhasingHandler.h.

Member Function Documentation

◆ AddPhase() [1/2]

void PhasingHandler::AddPhase ( WorldObject object,
uint32  phaseId,
bool  updateVisibility 
)
static

Definition at line 96 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddPhase() [2/2]

void PhasingHandler::AddPhase ( WorldObject object,
uint32  phaseId,
ObjectGuid const &  personalGuid,
bool  updateVisibility,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 102 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ AddPhaseGroup() [1/2]

void PhasingHandler::AddPhaseGroup ( WorldObject object,
std::vector< uint32 > const *  phasesInGroup,
ObjectGuid const &  personalGuid,
bool  updateVisibility,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 155 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ AddPhaseGroup() [2/2]

void PhasingHandler::AddPhaseGroup ( WorldObject object,
uint32  phaseGroupId,
bool  updateVisibility 
)
static

Definition at line 145 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddVisibleMapId() [1/2]

void PhasingHandler::AddVisibleMapId ( WorldObject object,
uint32  visibleMapId 
)
static

Definition at line 206 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddVisibleMapId() [2/2]

void PhasingHandler::AddVisibleMapId ( WorldObject object,
uint32  visibleMapId,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 212 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ FillPartyMemberPhase()

void PhasingHandler::FillPartyMemberPhase ( WorldPackets::Party::PartyMemberPhaseStates partyMemberPhases,
PhaseShift const &  phaseShift 
)
static

Definition at line 509 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FormatPhases()

std::string PhasingHandler::FormatPhases ( PhaseShift const &  phaseShift)
static

Definition at line 669 of file PhasingHandler.cpp.

+ Here is the caller graph for this function:

◆ GetAlwaysVisiblePhaseShift()

PhaseShift const & PhasingHandler::GetAlwaysVisiblePhaseShift ( )
static

Definition at line 523 of file PhasingHandler.cpp.

+ Here is the caller graph for this function:

◆ GetEmptyPhaseShift()

PhaseShift const & PhasingHandler::GetEmptyPhaseShift ( )
static

Definition at line 518 of file PhasingHandler.cpp.

+ Here is the caller graph for this function:

◆ GetTerrainMapId()

uint32 PhasingHandler::GetTerrainMapId ( PhaseShift const &  phaseShift,
uint32  mapId,
TerrainInfo const *  terrain,
float  x,
float  y 
)
static

Definition at line 578 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InDbPhaseShift()

bool PhasingHandler::InDbPhaseShift ( WorldObject const *  object,
uint8  phaseUseFlags,
uint16  phaseId,
uint32  phaseGroupId 
)
static

Definition at line 571 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InheritPhaseShift()

void PhasingHandler::InheritPhaseShift ( WorldObject target,
WorldObject const *  source 
)
static

Definition at line 262 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitDbPersonalOwnership()

void PhasingHandler::InitDbPersonalOwnership ( PhaseShift phaseShift,
ObjectGuid const &  personalGuid 
)
static

Definition at line 557 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ InitDbPhaseShift()

void PhasingHandler::InitDbPhaseShift ( PhaseShift phaseShift,
uint8  phaseUseFlags,
uint16  phaseId,
uint32  phaseGroupId 
)
static

Definition at line 528 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitDbVisibleMapId()

void PhasingHandler::InitDbVisibleMapId ( PhaseShift phaseShift,
int32  visibleMapId 
)
static

Definition at line 564 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsPersonalPhase()

bool PhasingHandler::IsPersonalPhase ( uint32  phaseId)
static

Definition at line 678 of file PhasingHandler.cpp.

+ Here is the caller graph for this function:

◆ OnAreaChange()

void PhasingHandler::OnAreaChange ( WorldObject object)
static

Definition at line 299 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OnConditionChange()

bool PhasingHandler::OnConditionChange ( WorldObject object,
bool  updateVisibility = true 
)
static

Definition at line 369 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OnMapChange()

void PhasingHandler::OnMapChange ( WorldObject object)
static

Definition at line 268 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrintToChat()

void PhasingHandler::PrintToChat ( ChatHandler chat,
WorldObject const *  target 
)
static

Definition at line 619 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemovePhase() [1/2]

void PhasingHandler::RemovePhase ( WorldObject object,
uint32  phaseId,
bool  updateVisibility 
)
static

Definition at line 122 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemovePhase() [2/2]

void PhasingHandler::RemovePhase ( WorldObject object,
uint32  phaseId,
bool  updateVisibility,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 128 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ RemovePhaseGroup() [1/2]

void PhasingHandler::RemovePhaseGroup ( WorldObject object,
std::vector< uint32 > const *  phasesInGroup,
bool  updateVisibility,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 187 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ RemovePhaseGroup() [2/2]

void PhasingHandler::RemovePhaseGroup ( WorldObject object,
uint32  phaseGroupId,
bool  updateVisibility 
)
static

Definition at line 177 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveVisibleMapId() [1/2]

void PhasingHandler::RemoveVisibleMapId ( WorldObject object,
uint32  visibleMapId 
)
static

Definition at line 231 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveVisibleMapId() [2/2]

void PhasingHandler::RemoveVisibleMapId ( WorldObject object,
uint32  visibleMapId,
ControlledUnitVisitor visitor 
)
staticprivate

Definition at line 237 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ ResetPhaseShift()

void PhasingHandler::ResetPhaseShift ( WorldObject object)
static

Definition at line 256 of file PhasingHandler.cpp.

+ Here is the caller graph for this function:

◆ SendToPlayer() [1/2]

void PhasingHandler::SendToPlayer ( Player const *  player)
static

Definition at line 504 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ SendToPlayer() [2/2]

void PhasingHandler::SendToPlayer ( Player const *  player,
PhaseShift const &  phaseShift 
)
static

Definition at line 485 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAlwaysVisible()

void PhasingHandler::SetAlwaysVisible ( WorldObject object,
bool  apply,
bool  updateVisibility 
)
static

Definition at line 597 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetInversed()

void PhasingHandler::SetInversed ( WorldObject object,
bool  apply,
bool  updateVisibility 
)
static

Definition at line 607 of file PhasingHandler.cpp.

+ Here is the call graph for this function:

◆ UpdateVisibilityIfNeeded()

void PhasingHandler::UpdateVisibilityIfNeeded ( WorldObject object,
bool  updateVisibility,
bool  changed 
)
staticprivate

Definition at line 686 of file PhasingHandler.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ ControlledUnitVisitor

Definition at line 80 of file PhasingHandler.h.


The documentation for this class was generated from the following files: