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

#include <InstanceLockMgr.h>

+ Inheritance diagram for InstanceLock:

Public Member Functions

 InstanceLock (uint32 mapId, Difficulty difficultyId, InstanceResetTimePoint expiryTime, uint32 instanceId)
 
virtual ~InstanceLock ()
 
 InstanceLock (InstanceLock const &)=delete
 
 InstanceLock (InstanceLock &&)=delete
 
InstanceLock & operator= (InstanceLock const &)=delete
 
InstanceLock & operator= (InstanceLock &&)=delete
 
uint32 GetMapId () const
 
Difficulty GetDifficultyId () const
 
uint32 GetInstanceId () const
 
void SetInstanceId (uint32 instanceId)
 
InstanceResetTimePoint GetExpiryTime () const
 
void SetExpiryTime (InstanceResetTimePoint expiryTime)
 
bool IsExpired () const
 
bool IsExtended () const
 
void SetExtended (bool extended)
 
InstanceLockData * GetData ()
 
InstanceLockData const * GetData () const
 
virtual InstanceLockData const * GetInstanceInitializationData () const
 
InstanceResetTimePoint GetEffectiveExpiryTime () const
 
bool IsInUse () const
 
void SetInUse (bool inUse)
 
bool IsNew () const
 
void SetIsNew (bool isNew)
 

Private Attributes

uint32 _mapId
 
Difficulty _difficultyId
 
uint32 _instanceId
 
std::chrono::system_clock::time_point _expiryTime
 
bool _extended
 
InstanceLockData _data
 
bool _isInUse
 
bool _isNew
 

Detailed Description

Definition at line 83 of file InstanceLockMgr.h.

Constructor & Destructor Documentation

◆ InstanceLock() [1/3]

InstanceLock::InstanceLock ( uint32  mapId,
Difficulty  difficultyId,
InstanceResetTimePoint  expiryTime,
uint32  instanceId 
)

Definition at line 31 of file InstanceLockMgr.cpp.

◆ ~InstanceLock()

InstanceLock::~InstanceLock ( )
virtualdefault

◆ InstanceLock() [2/3]

InstanceLock::InstanceLock ( InstanceLock const &  )
delete

◆ InstanceLock() [3/3]

InstanceLock::InstanceLock ( InstanceLock &&  )
delete

Member Function Documentation

◆ GetData() [1/2]

◆ GetData() [2/2]

InstanceLockData const * InstanceLock::GetData ( ) const
inline

Definition at line 109 of file InstanceLockMgr.h.

◆ GetDifficultyId()

Difficulty InstanceLock::GetDifficultyId ( ) const
inline

◆ GetEffectiveExpiryTime()

InstanceResetTimePoint InstanceLock::GetEffectiveExpiryTime ( ) const

◆ GetExpiryTime()

InstanceResetTimePoint InstanceLock::GetExpiryTime ( ) const
inline

◆ GetInstanceId()

◆ GetInstanceInitializationData()

virtual InstanceLockData const * InstanceLock::GetInstanceInitializationData ( ) const
inlinevirtual

Reimplemented in SharedInstanceLock.

Definition at line 111 of file InstanceLockMgr.h.

Referenced by InstanceMap::CreateInstanceData().

◆ GetMapId()

uint32 InstanceLock::GetMapId ( ) const
inline

◆ IsExpired()

◆ IsExtended()

◆ IsInUse()

bool InstanceLock::IsInUse ( ) const
inline

Definition at line 115 of file InstanceLockMgr.h.

◆ IsNew()

◆ operator=() [1/2]

InstanceLock & InstanceLock::operator= ( InstanceLock &&  )
delete

◆ operator=() [2/2]

InstanceLock & InstanceLock::operator= ( InstanceLock const &  )
delete

◆ SetExpiryTime()

void InstanceLock::SetExpiryTime ( InstanceResetTimePoint  expiryTime)
inline

Definition at line 102 of file InstanceLockMgr.h.

Referenced by InstanceLockMgr::UpdateInstanceLockForPlayer().

◆ SetExtended()

void InstanceLock::SetExtended ( bool  extended)
inline

◆ SetInstanceId()

void InstanceLock::SetInstanceId ( uint32  instanceId)
inline

◆ SetInUse()

void InstanceLock::SetInUse ( bool  inUse)
inline

Definition at line 116 of file InstanceLockMgr.h.

Referenced by InstanceMap::InstanceMap(), and InstanceMap::~InstanceMap().

◆ SetIsNew()

void InstanceLock::SetIsNew ( bool  isNew)
inline

Member Data Documentation

◆ _data

InstanceLockData InstanceLock::_data
private

Definition at line 127 of file InstanceLockMgr.h.

◆ _difficultyId

Difficulty InstanceLock::_difficultyId
private

Definition at line 123 of file InstanceLockMgr.h.

Referenced by GetEffectiveExpiryTime().

◆ _expiryTime

std::chrono::system_clock::time_point InstanceLock::_expiryTime
private

Definition at line 125 of file InstanceLockMgr.h.

Referenced by IsExpired().

◆ _extended

bool InstanceLock::_extended
private

Definition at line 126 of file InstanceLockMgr.h.

◆ _instanceId

uint32 InstanceLock::_instanceId
private

Definition at line 124 of file InstanceLockMgr.h.

◆ _isInUse

bool InstanceLock::_isInUse
private

Definition at line 128 of file InstanceLockMgr.h.

◆ _isNew

bool InstanceLock::_isNew
private

Definition at line 129 of file InstanceLockMgr.h.

◆ _mapId

uint32 InstanceLock::_mapId
private

Definition at line 122 of file InstanceLockMgr.h.

Referenced by GetEffectiveExpiryTime().


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