![]() |
TrinityCore
|
#include <GroupMgr.h>
Public Types | |
| typedef std::map< ObjectGuid::LowType, Group * > | GroupContainer |
| typedef std::vector< Group * > | GroupDbContainer |
Public Member Functions | |
| 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 23 of file GroupMgr.h.
| typedef std::map<ObjectGuid::LowType, Group*> GroupMgr::GroupContainer |
Definition at line 32 of file GroupMgr.h.
| typedef std::vector<Group*> GroupMgr::GroupDbContainer |
Definition at line 33 of file GroupMgr.h.
|
private |
Definition at line 26 of file GroupMgr.cpp.
References NextGroupDbStoreId, and NextGroupId.
|
private |
Definition at line 32 of file GroupMgr.cpp.
References GroupStore.
| void GroupMgr::AddGroup | ( | Group * | group | ) |
Definition at line 118 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), Group::GetGUID(), and GroupStore.
Referenced by LoadGroups().
| void GroupMgr::FreeGroupDbStoreId | ( | Group * | group | ) |
Definition at line 69 of file GroupMgr.cpp.
References Group::GetDbStoreId(), GroupDbStore, and NextGroupDbStoreId.
| ObjectGuid::LowType GroupMgr::GenerateGroupId | ( | ) |
Definition at line 87 of file GroupMgr.cpp.
References ERROR_EXIT_CODE, NextGroupId, World::StopNow(), and TC_LOG_ERROR.
| uint32 GroupMgr::GenerateNewGroupDbStoreId | ( | ) |
Definition at line 38 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 103 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), and GroupStore.
|
static |
| void GroupMgr::LoadGroups | ( | ) |
Definition at line 128 of file GroupMgr.cpp.
References AddGroup(), ASSERT, Group::BindToInstance(), CharacterDatabase, Group::GetDbStoreId(), GetGroupByDbStoreId(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt8(), MapEntry::ID, MapEntry::IsDungeon(), MapEntry::IsRaid(), Group::LoadGroupFromDB(), Group::LoadMemberFromDB(), MAX_DUNGEON_DIFFICULTY, MAX_RAID_DIFFICULTY, NextGroupDbStoreId, RegisterGroupDbStoreId(), sInstanceSaveMgr, sMapStore, TC_LOG_ERROR, and TC_LOG_INFO.
| void GroupMgr::RemoveGroup | ( | Group * | group | ) |
Definition at line 123 of file GroupMgr.cpp.
References ObjectGuid::GetCounter(), Group::GetGUID(), and GroupStore.
|
inline |
Definition at line 42 of file GroupMgr.h.
|
inline |
Definition at line 40 of file GroupMgr.h.
| void GroupMgr::Update | ( | uint32 | diff | ) |
Definition at line 112 of file GroupMgr.cpp.
References GroupStore, and Group::Update().
|
protected |
Definition at line 55 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GetGroupByDbStoreId(), and RegisterGroupDbStoreId().
|
protected |
Definition at line 54 of file GroupMgr.h.
Referenced by AddGroup(), GetGroupByGUID(), RemoveGroup(), Update(), and ~GroupMgr().
|
protected |
Definition at line 53 of file GroupMgr.h.
Referenced by FreeGroupDbStoreId(), GenerateNewGroupDbStoreId(), GroupMgr(), and LoadGroups().
|
protected |
Definition at line 52 of file GroupMgr.h.
Referenced by GenerateGroupId(), and GroupMgr().