![]() |
TrinityCore
|
#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 |
Definition at line 83 of file InstanceLockMgr.h.
| InstanceLock::InstanceLock | ( | uint32 | mapId, |
| Difficulty | difficultyId, | ||
| InstanceResetTimePoint | expiryTime, | ||
| uint32 | instanceId | ||
| ) |
Definition at line 31 of file InstanceLockMgr.cpp.
|
virtualdefault |
|
delete |
|
delete |
|
inline |
Definition at line 108 of file InstanceLockMgr.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceLockMgr::CanJoinInstanceLock(), InstanceMap::CreateInstanceLockForPlayer(), Player::IsLockedToDungeonEncounter(), Player::IsLockedToDungeonEncounter(), InstanceLockMgr::Load(), InstanceMap::Reset(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 109 of file InstanceLockMgr.h.
|
inline |
Definition at line 96 of file InstanceLockMgr.h.
Referenced by MapManager::CreateMap(), WorldSession::SendCalendarRaidLockoutAdded(), and WorldSession::SendCalendarRaidLockoutRemoved().
| InstanceResetTimePoint InstanceLock::GetEffectiveExpiryTime | ( | ) | const |
Definition at line 44 of file InstanceLockMgr.cpp.
References _difficultyId, _mapId, GetExpiryTime(), IsExpired(), IsExtended(), and sInstanceLockMgr.
Referenced by WorldSession::SendCalendarRaidLockoutAdded().
|
inline |
Definition at line 101 of file InstanceLockMgr.h.
Referenced by GetEffectiveExpiryTime(), InstanceMap::InstanceMap(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 98 of file InstanceLockMgr.h.
Referenced by InstanceLockMgr::CanJoinInstanceLock(), MapManager::CreateMap(), MapManager::FindInstanceIdForPlayer(), WorldSession::SendCalendarRaidLockoutAdded(), WorldSession::SendCalendarRaidLockoutRemoved(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inlinevirtual |
Reimplemented in SharedInstanceLock.
Definition at line 111 of file InstanceLockMgr.h.
Referenced by InstanceMap::CreateInstanceData().
|
inline |
Definition at line 94 of file InstanceLockMgr.h.
Referenced by WorldSession::SendCalendarRaidLockoutAdded(), and WorldSession::SendCalendarRaidLockoutRemoved().
| bool InstanceLock::IsExpired | ( | ) | const |
Definition at line 39 of file InstanceLockMgr.cpp.
References _expiryTime, and GameTime::GetSystemTime().
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CreateInstanceLockForPlayer(), InstanceLockMgr::FindActiveInstanceLock(), GetEffectiveExpiryTime(), InstanceMap::RemovePlayerFromMap(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 105 of file InstanceLockMgr.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceLockMgr::FindActiveInstanceLock(), GetEffectiveExpiryTime(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 115 of file InstanceLockMgr.h.
|
inline |
Definition at line 118 of file InstanceLockMgr.h.
Referenced by InstanceMap::AddPlayerToMap(), InstanceLockMgr::CanJoinInstanceLock(), MapManager::CreateInstance(), InstanceMap::CreateInstanceData(), InstanceMap::CreateInstanceLockForPlayer(), InstanceMap::Reset(), InstanceMap::UpdateInstanceLock(), and InstanceMap::UpdateInstanceLock().
|
delete |
|
delete |
|
inline |
Definition at line 102 of file InstanceLockMgr.h.
Referenced by InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 106 of file InstanceLockMgr.h.
Referenced by InstanceLockMgr::Load(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 99 of file InstanceLockMgr.h.
Referenced by MapManager::CreateMap(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
inline |
Definition at line 116 of file InstanceLockMgr.h.
Referenced by InstanceMap::InstanceMap(), and InstanceMap::~InstanceMap().
|
inline |
Definition at line 119 of file InstanceLockMgr.h.
Referenced by InstanceLockMgr::CreateInstanceLockForNewInstance(), and InstanceLockMgr::UpdateInstanceLockForPlayer().
|
private |
Definition at line 127 of file InstanceLockMgr.h.
|
private |
Definition at line 123 of file InstanceLockMgr.h.
Referenced by GetEffectiveExpiryTime().
|
private |
Definition at line 125 of file InstanceLockMgr.h.
Referenced by IsExpired().
|
private |
Definition at line 126 of file InstanceLockMgr.h.
|
private |
Definition at line 124 of file InstanceLockMgr.h.
|
private |
Definition at line 128 of file InstanceLockMgr.h.
|
private |
Definition at line 129 of file InstanceLockMgr.h.
|
private |
Definition at line 122 of file InstanceLockMgr.h.
Referenced by GetEffectiveExpiryTime().