![]() |
TrinityCore
|
#include <GroupMgr.h>
Public Types | |
| typedef std::map< ObjectGuid::LowType, Group * > | GroupContainer |
| typedef std::vector< Group * > | GroupDbContainer |
Public Member Functions | |
| GroupMgr (GroupMgr const &)=delete | |
| GroupMgr (GroupMgr &&)=delete | |
| GroupMgr & | operator= (GroupMgr const &)=delete |
| GroupMgr & | operator= (GroupMgr &&)=delete |
| Group * | GetGroupByGUID (ObjectGuid const &guid) const |
| uint32 | GenerateNewGroupDbStoreId () |
| void | RegisterGroupDbStoreId (uint32 storageId, Group *group) |
| void | FreeGroupDbStoreId (Group *group) |
| void | SetNextGroupDbStoreId (uint32 storageId) |
| Group * | GetGroupByDbStoreId (uint32 storageId) const |
| void | SetGroupDbStoreSize (uint32 newSize) |
| void | Update (uint32 diff) |
| void | LoadGroups () |
| ObjectGuid::LowType | GenerateGroupId () |
| void | AddGroup (Group *group) |
| void | RemoveGroup (Group *group) |
Static Public Member Functions | |
| static GroupMgr * | instance () |
Protected Attributes | |
| ObjectGuid::LowType | NextGroupId |
| uint32 | NextGroupDbStoreId |
| GroupContainer | GroupStore |
| GroupDbContainer | GroupDbStore |
Private Member Functions | |
| GroupMgr () | |
| ~GroupMgr () | |
Definition at line 26 of file GroupMgr.h.
| typedef std::map<ObjectGuid::LowType, Group*> GroupMgr::GroupContainer |
Definition at line 40 of file GroupMgr.h.
| typedef std::vector<Group*> GroupMgr::GroupDbContainer |
Definition at line 41 of file GroupMgr.h.
|
private |
Definition at line 25 of file GroupMgr.cpp.
References NextGroupDbStoreId, NextGroupId, and UI64LIT.
|
private |
Definition at line 31 of file GroupMgr.cpp.
References GroupStore.
|
delete |
|
delete |
| void GroupMgr::AddGroup | ( | Group * | group | ) |
Definition at line 122 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), Group::GetGUID(), and GroupStore.
Referenced by LoadGroups().
| void GroupMgr::FreeGroupDbStoreId | ( | Group * | group | ) |
Definition at line 68 of file GroupMgr.cpp.
References Group::GetDbStoreId(), GroupDbStore, and NextGroupDbStoreId.
| ObjectGuid::LowType GroupMgr::GenerateGroupId | ( | ) |
Definition at line 91 of file GroupMgr.cpp.
References ERROR_EXIT_CODE, NextGroupId, World::StopNow(), and TC_LOG_ERROR.
| uint32 GroupMgr::GenerateNewGroupDbStoreId | ( | ) |
Definition at line 37 of file GroupMgr.cpp.
References ERROR_EXIT_CODE, GroupDbStore, NextGroupDbStoreId, World::StopNow(), and TC_LOG_ERROR.
| Group * GroupMgr::GetGroupByGUID | ( | ObjectGuid const & | guid | ) | const |
Definition at line 107 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), and GroupStore.
|
static |
| void GroupMgr::LoadGroups | ( | ) |
Definition at line 132 of file GroupMgr.cpp.
References AddGroup(), CharacterDatabase, Group::GetDbStoreId(), GetGroupByDbStoreId(), getMSTime(), GetMSTimeDiffToNow(), Group::LoadGroupFromDB(), Group::LoadMemberFromDB(), NextGroupDbStoreId, RegisterGroupDbStoreId(), TC_LOG_ERROR, and TC_LOG_INFO.
| void GroupMgr::RemoveGroup | ( | Group * | group | ) |
Definition at line 127 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), Group::GetGUID(), and GroupStore.
| void GroupMgr::SetGroupDbStoreSize | ( | uint32 | newSize | ) |
Definition at line 86 of file GroupMgr.cpp.
References GroupDbStore.
|
inline |
Definition at line 48 of file GroupMgr.h.
| void GroupMgr::Update | ( | uint32 | diff | ) |
Definition at line 116 of file GroupMgr.cpp.
References GroupStore, and Group::Update().
|
protected |
Definition at line 63 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GetGroupByDbStoreId(), RegisterGroupDbStoreId(), and SetGroupDbStoreSize().
|
protected |
Definition at line 62 of file GroupMgr.h.
Referenced by AddGroup(), GetGroupByGUID(), RemoveGroup(), Update(), and ~GroupMgr().
|
protected |
Definition at line 61 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GroupMgr(), and LoadGroups().
|
protected |
Definition at line 60 of file GroupMgr.h.
Referenced by GenerateGroupId(), and GroupMgr().