TrinityCore
Loading...
Searching...
No Matches
SmoothPhasing Class Reference

#include <SmoothPhasing.h>

Public Member Functions

 SmoothPhasing ()
 
 SmoothPhasing (SmoothPhasing const &)
 
 SmoothPhasing (SmoothPhasing &&) noexcept
 
SmoothPhasingoperator= (SmoothPhasing const &)
 
SmoothPhasingoperator= (SmoothPhasing &&) noexcept
 
 ~SmoothPhasing ()
 
void SetViewerDependentInfo (ObjectGuid seer, SmoothPhasingInfo const &info)
 
void ClearViewerDependentInfo (ObjectGuid seer)
 
void SetSingleInfo (SmoothPhasingInfo const &info)
 
bool IsReplacing (ObjectGuid guid) const
 
bool IsBeingReplacedForSeer (ObjectGuid seer) const
 
SmoothPhasingInfo const * GetInfoForSeer (ObjectGuid seer) const
 
void DisableReplacementForSeer (ObjectGuid seer)
 

Private Types

using SmoothPhasingInfoViewerDependent = std::unordered_map< ObjectGuid, SmoothPhasingInfo >
 
using SmoothPhasingInfoSingle = SmoothPhasingInfo
 

Private Attributes

std::variant< SmoothPhasingInfoSingle, SmoothPhasingInfoViewerDependent_storage
 

Detailed Description

Definition at line 37 of file SmoothPhasing.h.

Member Typedef Documentation

◆ SmoothPhasingInfoSingle

Definition at line 60 of file SmoothPhasing.h.

◆ SmoothPhasingInfoViewerDependent

Definition at line 59 of file SmoothPhasing.h.

Constructor & Destructor Documentation

◆ SmoothPhasing() [1/3]

SmoothPhasing::SmoothPhasing ( )
default

◆ SmoothPhasing() [2/3]

SmoothPhasing::SmoothPhasing ( SmoothPhasing const &  )
default

◆ SmoothPhasing() [3/3]

SmoothPhasing::SmoothPhasing ( SmoothPhasing &&  )
defaultnoexcept

◆ ~SmoothPhasing()

SmoothPhasing::~SmoothPhasing ( )
default

Member Function Documentation

◆ ClearViewerDependentInfo()

void SmoothPhasing::ClearViewerDependentInfo ( ObjectGuid  seer)

Definition at line 36 of file SmoothPhasing.cpp.

◆ DisableReplacementForSeer()

void SmoothPhasing::DisableReplacementForSeer ( ObjectGuid  seer)

Definition at line 69 of file SmoothPhasing.cpp.

+ Here is the call graph for this function:

◆ GetInfoForSeer()

SmoothPhasingInfo const * SmoothPhasing::GetInfoForSeer ( ObjectGuid  seer) const

Definition at line 61 of file SmoothPhasing.cpp.

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

◆ IsBeingReplacedForSeer()

bool SmoothPhasing::IsBeingReplacedForSeer ( ObjectGuid  seer) const

Definition at line 52 of file SmoothPhasing.cpp.

+ Here is the call graph for this function:

◆ IsReplacing()

bool SmoothPhasing::IsReplacing ( ObjectGuid  guid) const

Definition at line 47 of file SmoothPhasing.cpp.

◆ operator=() [1/2]

SmoothPhasing & SmoothPhasing::operator= ( SmoothPhasing &&  )
defaultnoexcept

◆ operator=() [2/2]

SmoothPhasing & SmoothPhasing::operator= ( SmoothPhasing const &  )
default

◆ SetSingleInfo()

void SmoothPhasing::SetSingleInfo ( SmoothPhasingInfo const &  info)

Definition at line 42 of file SmoothPhasing.cpp.

+ Here is the caller graph for this function:

◆ SetViewerDependentInfo()

void SmoothPhasing::SetViewerDependentInfo ( ObjectGuid  seer,
SmoothPhasingInfo const &  info 
)

Definition at line 28 of file SmoothPhasing.cpp.

Member Data Documentation

◆ _storage

std::variant<SmoothPhasingInfoSingle, SmoothPhasingInfoViewerDependent> SmoothPhasing::_storage
private

Definition at line 62 of file SmoothPhasing.h.


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