TrinityCore
Guild::RankInfo Class Reference

Public Member Functions

 RankInfo ()
 
 RankInfo (ObjectGuid::LowType guildId)
 
 RankInfo (ObjectGuid::LowType guildId, GuildRankId rankId, GuildRankOrder rankOrder, std::string_view name, uint32 rights, uint32 money)
 
void LoadFromDB (Field *fields)
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
GuildRankId GetId () const
 
GuildRankOrder GetOrder () const
 
void SetOrder (GuildRankOrder rankOrder)
 
std::string const & GetName () const
 
void SetName (std::string_view name)
 
uint32 GetRights () const
 
void SetRights (uint32 rights)
 
uint32 GetBankMoneyPerDay () const
 
void SetBankMoneyPerDay (uint32 money)
 
int8 GetBankTabRights (uint8 tabId) const
 
int32 GetBankTabSlotsPerDay (uint8 tabId) const
 
void SetBankTabSlotsAndRights (GuildBankRightsAndSlots rightsAndSlots, bool saveToDB)
 
void CreateMissingTabsIfNeeded (uint8 ranks, CharacterDatabaseTransaction trans, bool logOnCreate=false)
 

Private Attributes

ObjectGuid::LowType m_guildId
 
GuildRankId m_rankId
 
GuildRankOrder m_rankOrder
 
std::string m_name
 
uint32 m_rights
 
uint32 m_bankMoneyPerDay
 
std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABSm_bankTabRightsAndSlots = {}
 

Detailed Description

Definition at line 568 of file Guild.h.

Constructor & Destructor Documentation

◆ RankInfo() [1/3]

Guild::RankInfo::RankInfo ( )
inline

Definition at line 571 of file Guild.h.

◆ RankInfo() [2/3]

Guild::RankInfo::RankInfo ( ObjectGuid::LowType  guildId)
inline

Definition at line 572 of file Guild.h.

◆ RankInfo() [3/3]

Guild::RankInfo::RankInfo ( ObjectGuid::LowType  guildId,
GuildRankId  rankId,
GuildRankOrder  rankOrder,
std::string_view  name,
uint32  rights,
uint32  money 
)
inline

Definition at line 573 of file Guild.h.

Member Function Documentation

◆ CreateMissingTabsIfNeeded()

void Guild::RankInfo::CreateMissingTabsIfNeeded ( uint8  ranks,
CharacterDatabaseTransaction  trans,
bool  logOnCreate = false 
)

Definition at line 277 of file Guild.cpp.

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

◆ GetBankMoneyPerDay()

uint32 Guild::RankInfo::GetBankMoneyPerDay ( ) const
inline

Definition at line 590 of file Guild.h.

◆ GetBankTabRights()

int8 Guild::RankInfo::GetBankTabRights ( uint8  tabId) const
inline

Definition at line 597 of file Guild.h.

◆ GetBankTabSlotsPerDay()

int32 Guild::RankInfo::GetBankTabSlotsPerDay ( uint8  tabId) const
inline

Definition at line 602 of file Guild.h.

◆ GetId()

GuildRankId Guild::RankInfo::GetId ( ) const
inline

Definition at line 579 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & Guild::RankInfo::GetName ( ) const
inline

Definition at line 584 of file Guild.h.

◆ GetOrder()

GuildRankOrder Guild::RankInfo::GetOrder ( ) const
inline

Definition at line 581 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetRights()

uint32 Guild::RankInfo::GetRights ( ) const
inline

Definition at line 587 of file Guild.h.

◆ LoadFromDB()

void Guild::RankInfo::LoadFromDB ( Field fields)

Definition at line 254 of file Guild.cpp.

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

◆ SaveToDB()

void Guild::RankInfo::SaveToDB ( CharacterDatabaseTransaction  trans) const

Definition at line 265 of file Guild.cpp.

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

◆ SetBankMoneyPerDay()

void Guild::RankInfo::SetBankMoneyPerDay ( uint32  money)

Definition at line 333 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetBankTabSlotsAndRights()

void Guild::RankInfo::SetBankTabSlotsAndRights ( GuildBankRightsAndSlots  rightsAndSlots,
bool  saveToDB 
)

Definition at line 347 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetName()

void Guild::RankInfo::SetName ( std::string_view  name)

Definition at line 302 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetOrder()

void Guild::RankInfo::SetOrder ( GuildRankOrder  rankOrder)
inline

Definition at line 582 of file Guild.h.

+ Here is the caller graph for this function:

◆ SetRights()

void Guild::RankInfo::SetRights ( uint32  rights)

Definition at line 316 of file Guild.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_bankMoneyPerDay

uint32 Guild::RankInfo::m_bankMoneyPerDay
private

Definition at line 616 of file Guild.h.

◆ m_bankTabRightsAndSlots

std::array<GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS> Guild::RankInfo::m_bankTabRightsAndSlots = {}
private

Definition at line 617 of file Guild.h.

◆ m_guildId

ObjectGuid::LowType Guild::RankInfo::m_guildId
private

Definition at line 611 of file Guild.h.

◆ m_name

std::string Guild::RankInfo::m_name
private

Definition at line 614 of file Guild.h.

◆ m_rankId

GuildRankId Guild::RankInfo::m_rankId
private

Definition at line 612 of file Guild.h.

◆ m_rankOrder

GuildRankOrder Guild::RankInfo::m_rankOrder
private

Definition at line 613 of file Guild.h.

◆ m_rights

uint32 Guild::RankInfo::m_rights
private

Definition at line 615 of file Guild.h.


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