TrinityCore
GuildMgr Class Reference

#include <GuildMgr.h>

Public Member Functions

GuildGetGuildByLeader (ObjectGuid guid) const
 
GuildGetGuildById (ObjectGuid::LowType guildId) const
 
GuildGetGuildByGuid (ObjectGuid guid) const
 
GuildGetGuildByName (std::string_view guildName) const
 
std::string GetGuildNameById (ObjectGuid::LowType guildId) const
 
void LoadGuildRewards ()
 
void LoadGuilds ()
 
void AddGuild (Guild *guild)
 
void RemoveGuild (ObjectGuid::LowType guildId)
 
void SaveGuilds ()
 
void ResetReputationCaps ()
 
ObjectGuid::LowType GenerateGuildId ()
 
void SetNextGuildId (ObjectGuid::LowType Id)
 
std::vector< GuildReward > const & GetGuildRewards () const
 
void ResetTimes (bool week)
 

Static Public Member Functions

static GuildMgrinstance ()
 

Protected Types

typedef std::unordered_map< ObjectGuid::LowType, Trinity::unique_trackable_ptr< Guild > > GuildContainer
 

Protected Attributes

ObjectGuid::LowType NextGuildId
 
GuildContainer GuildStore
 
std::vector< GuildRewardGuildRewards
 

Private Member Functions

 GuildMgr ()
 
 ~GuildMgr ()
 
 GuildMgr (GuildMgr const &)=delete
 
GuildMgroperator= (GuildMgr const &)=delete
 

Detailed Description

Definition at line 30 of file GuildMgr.h.

Member Typedef Documentation

◆ GuildContainer

Definition at line 64 of file GuildMgr.h.

Constructor & Destructor Documentation

◆ GuildMgr() [1/2]

GuildMgr::GuildMgr ( )
private

Definition at line 28 of file GuildMgr.cpp.

◆ ~GuildMgr()

GuildMgr::~GuildMgr ( )
privatedefault

◆ GuildMgr() [2/2]

GuildMgr::GuildMgr ( GuildMgr const &  )
privatedelete

Member Function Documentation

◆ AddGuild()

void GuildMgr::AddGuild ( Guild guild)

Definition at line 34 of file GuildMgr.cpp.

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

◆ GenerateGuildId()

ObjectGuid::LowType GuildMgr::GenerateGuildId ( )

Definition at line 52 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildByGuid()

Guild * GuildMgr::GetGuildByGuid ( ObjectGuid  guid) const

Definition at line 72 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildById()

Guild * GuildMgr::GetGuildById ( ObjectGuid::LowType  guildId) const

Definition at line 63 of file GuildMgr.cpp.

+ Here is the caller graph for this function:

◆ GetGuildByLeader()

Guild * GuildMgr::GetGuildByLeader ( ObjectGuid  guid) const

Definition at line 106 of file GuildMgr.cpp.

◆ GetGuildByName()

Guild * GuildMgr::GetGuildByName ( std::string_view  guildName) const

Definition at line 83 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildNameById()

std::string GuildMgr::GetGuildNameById ( ObjectGuid::LowType  guildId) const

Definition at line 92 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ GetGuildRewards()

std::vector< GuildReward > const & GuildMgr::GetGuildRewards ( ) const
inline

Definition at line 60 of file GuildMgr.h.

◆ instance()

GuildMgr * GuildMgr::instance ( )
static

Definition at line 100 of file GuildMgr.cpp.

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

◆ LoadGuildRewards()

void GuildMgr::LoadGuildRewards ( )

Definition at line 494 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ LoadGuilds()

void GuildMgr::LoadGuilds ( )

Definition at line 115 of file GuildMgr.cpp.

+ Here is the call graph for this function:

◆ operator=()

GuildMgr & GuildMgr::operator= ( GuildMgr const &  )
privatedelete

◆ RemoveGuild()

void GuildMgr::RemoveGuild ( ObjectGuid::LowType  guildId)

Definition at line 41 of file GuildMgr.cpp.

◆ ResetReputationCaps()

void GuildMgr::ResetReputationCaps ( )

◆ ResetTimes()

void GuildMgr::ResetTimes ( bool  week)

Definition at line 558 of file GuildMgr.cpp.

◆ SaveGuilds()

void GuildMgr::SaveGuilds ( )

Definition at line 46 of file GuildMgr.cpp.

◆ SetNextGuildId()

void GuildMgr::SetNextGuildId ( ObjectGuid::LowType  Id)
inline

Definition at line 58 of file GuildMgr.h.

Member Data Documentation

◆ GuildRewards

std::vector<GuildReward> GuildMgr::GuildRewards
protected

Definition at line 67 of file GuildMgr.h.

◆ GuildStore

GuildContainer GuildMgr::GuildStore
protected

Definition at line 66 of file GuildMgr.h.

◆ NextGuildId

ObjectGuid::LowType GuildMgr::NextGuildId
protected

Definition at line 65 of file GuildMgr.h.


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