TrinityCore
Guild::Member Class Reference

#include <Guild.h>

Public Member Functions

 Member (ObjectGuid::LowType guildId, ObjectGuid guid, GuildRankId rankId)
 
void SetStats (Player *player)
 
void SetStats (std::string_view name, uint8 level, uint8 race, uint8 _class, uint8 gender, uint32 zoneId, uint32 accountId, uint32 reputation)
 
bool CheckStats () const
 
void SetPublicNote (std::string_view publicNote)
 
void SetOfficerNote (std::string_view officerNote)
 
void SetZoneId (uint32 id)
 
void SetAchievementPoints (uint32 val)
 
void SetLevel (uint8 var)
 
void AddFlag (uint8 var)
 
void RemFlag (uint8 var)
 
void ResetFlags ()
 
bool LoadFromDB (Field *fields)
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
ObjectGuid const & GetGUID () const
 
std::string const & GetName () const
 
uint32 GetAccountId () const
 
GuildRankId GetRankId () const
 
uint64 GetLogoutTime () const
 
float GetInactiveDays () const
 
std::string GetPublicNote () const
 
std::string GetOfficerNote () const
 
uint8 GetRace () const
 
uint8 GetClass () const
 
uint8 GetGender () const
 
uint8 GetLevel () const
 
uint8 GetFlags () const
 
uint32 GetZoneId () const
 
uint32 GetAchievementPoints () const
 
uint64 GetTotalActivity () const
 
uint64 GetWeekActivity () const
 
uint32 GetTotalReputation () const
 
uint32 GetWeekReputation () const
 
void SetTrackedCriteriaIds (std::set< uint32 > criteriaIds)
 
bool IsTrackingCriteriaId (uint32 criteriaId) const
 
bool IsOnline () const
 
void ChangeRank (CharacterDatabaseTransaction trans, GuildRankId newRank)
 
void UpdateLogoutTime ()
 
bool IsRank (GuildRankId rankId) const
 
bool IsSamePlayer (ObjectGuid guid) const
 
void UpdateBankTabWithdrawValue (CharacterDatabaseTransaction trans, uint8 tabId, uint32 amount)
 
void UpdateBankMoneyWithdrawValue (CharacterDatabaseTransaction trans, uint64 amount)
 
uint32 GetBankTabWithdrawValue (uint8 tabId) const
 
uint64 GetBankMoneyWithdrawValue () const
 
void ResetValues (bool weekly=false)
 
PlayerFindPlayer () const
 
PlayerFindConnectedPlayer () const
 

Private Attributes

ObjectGuid::LowType m_guildId
 
ObjectGuid m_guid
 
std::string m_name
 
uint32 m_zoneId
 
uint8 m_level
 
uint8 m_race
 
uint8 m_class
 
uint8 m_gender
 
uint8 m_flags
 
uint64 m_logoutTime
 
uint32 m_accountId
 
GuildRankId m_rankId
 
std::string m_publicNote
 
std::string m_officerNote
 
Optional< std::set< uint32 > > m_trackedCriteriaIds
 
std::array< uint32, GUILD_BANK_MAX_TABSm_bankWithdraw
 
uint64 m_bankWithdrawMoney
 
uint32 m_achievementPoints
 
uint64 m_totalActivity
 
uint64 m_weekActivity
 
uint32 m_totalReputation
 
uint32 m_weekReputation
 

Detailed Description

Definition at line 332 of file Guild.h.

Constructor & Destructor Documentation

◆ Member()

Guild::Member::Member ( ObjectGuid::LowType  guildId,
ObjectGuid  guid,
GuildRankId  rankId 
)

Definition at line 516 of file Guild.cpp.

Member Function Documentation

◆ AddFlag()

void Guild::Member::AddFlag ( uint8  var)
inline

Definition at line 347 of file Guild.h.

+ Here is the caller graph for this function:

◆ ChangeRank()

void Guild::Member::ChangeRank ( CharacterDatabaseTransaction  trans,
GuildRankId  newRank 
)

Definition at line 587 of file Guild.cpp.

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

◆ CheckStats()

bool Guild::Member::CheckStats ( ) const

Definition at line 657 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ FindConnectedPlayer()

Player * Guild::Member::FindConnectedPlayer ( ) const

Definition at line 732 of file Guild.cpp.

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

◆ FindPlayer()

Player * Guild::Member::FindPlayer ( ) const

Definition at line 727 of file Guild.cpp.

+ Here is the call graph for this function:

◆ GetAccountId()

uint32 Guild::Member::GetAccountId ( ) const
inline

Definition at line 356 of file Guild.h.

◆ GetAchievementPoints()

uint32 Guild::Member::GetAchievementPoints ( ) const
inline

Definition at line 368 of file Guild.h.

◆ GetBankMoneyWithdrawValue()

uint64 Guild::Member::GetBankMoneyWithdrawValue ( ) const
inline

Definition at line 388 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetBankTabWithdrawValue()

uint32 Guild::Member::GetBankTabWithdrawValue ( uint8  tabId) const
inline

Definition at line 387 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetClass()

uint8 Guild::Member::GetClass ( ) const
inline

Definition at line 363 of file Guild.h.

◆ GetFlags()

uint8 Guild::Member::GetFlags ( ) const
inline

Definition at line 366 of file Guild.h.

◆ GetGender()

uint8 Guild::Member::GetGender ( ) const
inline

Definition at line 364 of file Guild.h.

◆ GetGUID()

ObjectGuid const & Guild::Member::GetGUID ( ) const
inline

Definition at line 354 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetInactiveDays()

float Guild::Member::GetInactiveDays ( ) const

Definition at line 679 of file Guild.cpp.

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

◆ GetLevel()

uint8 Guild::Member::GetLevel ( ) const
inline

Definition at line 365 of file Guild.h.

◆ GetLogoutTime()

uint64 Guild::Member::GetLogoutTime ( ) const
inline

Definition at line 358 of file Guild.h.

◆ GetName()

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

Definition at line 355 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetOfficerNote()

std::string Guild::Member::GetOfficerNote ( ) const
inline

Definition at line 361 of file Guild.h.

◆ GetPublicNote()

std::string Guild::Member::GetPublicNote ( ) const
inline

Definition at line 360 of file Guild.h.

◆ GetRace()

uint8 Guild::Member::GetRace ( ) const
inline

Definition at line 362 of file Guild.h.

◆ GetRankId()

GuildRankId Guild::Member::GetRankId ( ) const
inline

Definition at line 357 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetTotalActivity()

uint64 Guild::Member::GetTotalActivity ( ) const
inline

Definition at line 369 of file Guild.h.

◆ GetTotalReputation()

uint32 Guild::Member::GetTotalReputation ( ) const
inline

Definition at line 371 of file Guild.h.

◆ GetWeekActivity()

uint64 Guild::Member::GetWeekActivity ( ) const
inline

Definition at line 370 of file Guild.h.

◆ GetWeekReputation()

uint32 Guild::Member::GetWeekReputation ( ) const
inline

Definition at line 372 of file Guild.h.

◆ GetZoneId()

uint32 Guild::Member::GetZoneId ( ) const
inline

Definition at line 367 of file Guild.h.

◆ IsOnline()

bool Guild::Member::IsOnline ( ) const
inline

Definition at line 377 of file Guild.h.

+ Here is the caller graph for this function:

◆ IsRank()

bool Guild::Member::IsRank ( GuildRankId  rankId) const
inline

Definition at line 382 of file Guild.h.

+ Here is the caller graph for this function:

◆ IsSamePlayer()

bool Guild::Member::IsSamePlayer ( ObjectGuid  guid) const
inline

Definition at line 383 of file Guild.h.

+ Here is the caller graph for this function:

◆ IsTrackingCriteriaId()

bool Guild::Member::IsTrackingCriteriaId ( uint32  criteriaId) const
inline

Definition at line 375 of file Guild.h.

◆ LoadFromDB()

bool Guild::Member::LoadFromDB ( Field fields)

Definition at line 620 of file Guild.cpp.

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

◆ RemFlag()

void Guild::Member::RemFlag ( uint8  var)
inline

Definition at line 348 of file Guild.h.

+ Here is the caller graph for this function:

◆ ResetFlags()

void Guild::Member::ResetFlags ( )
inline

Definition at line 349 of file Guild.h.

+ Here is the caller graph for this function:

◆ ResetValues()

void Guild::Member::ResetValues ( bool  weekly = false)

Definition at line 713 of file Guild.cpp.

◆ SaveToDB()

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

Definition at line 606 of file Guild.cpp.

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

◆ SetAchievementPoints()

void Guild::Member::SetAchievementPoints ( uint32  val)
inline

Definition at line 344 of file Guild.h.

◆ SetLevel()

void Guild::Member::SetLevel ( uint8  var)
inline

Definition at line 345 of file Guild.h.

◆ SetOfficerNote()

void Guild::Member::SetOfficerNote ( std::string_view  officerNote)

Definition at line 574 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetPublicNote()

void Guild::Member::SetPublicNote ( std::string_view  publicNote)

Definition at line 561 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetStats() [1/2]

void Guild::Member::SetStats ( Player player)

Definition at line 537 of file Guild.cpp.

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

◆ SetStats() [2/2]

void Guild::Member::SetStats ( std::string_view  name,
uint8  level,
uint8  race,
uint8  _class,
uint8  gender,
uint32  zoneId,
uint32  accountId,
uint32  reputation 
)

Definition at line 549 of file Guild.cpp.

◆ SetTrackedCriteriaIds()

void Guild::Member::SetTrackedCriteriaIds ( std::set< uint32 criteriaIds)
inline

Definition at line 374 of file Guild.h.

◆ SetZoneId()

void Guild::Member::SetZoneId ( uint32  id)
inline

Definition at line 343 of file Guild.h.

◆ UpdateBankMoneyWithdrawValue()

void Guild::Member::UpdateBankMoneyWithdrawValue ( CharacterDatabaseTransaction  trans,
uint64  amount 
)

Definition at line 703 of file Guild.cpp.

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

◆ UpdateBankTabWithdrawValue()

void Guild::Member::UpdateBankTabWithdrawValue ( CharacterDatabaseTransaction  trans,
uint8  tabId,
uint32  amount 
)

Definition at line 687 of file Guild.cpp.

+ Here is the call graph for this function:

◆ UpdateLogoutTime()

void Guild::Member::UpdateLogoutTime ( )
inline

Definition at line 601 of file Guild.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_accountId

uint32 Guild::Member::m_accountId
private

Definition at line 406 of file Guild.h.

◆ m_achievementPoints

uint32 Guild::Member::m_achievementPoints
private

Definition at line 416 of file Guild.h.

◆ m_bankWithdraw

std::array<uint32, GUILD_BANK_MAX_TABS> Guild::Member::m_bankWithdraw
private

Definition at line 414 of file Guild.h.

◆ m_bankWithdrawMoney

uint64 Guild::Member::m_bankWithdrawMoney
private

Definition at line 415 of file Guild.h.

◆ m_class

uint8 Guild::Member::m_class
private

Definition at line 402 of file Guild.h.

◆ m_flags

uint8 Guild::Member::m_flags
private

Definition at line 404 of file Guild.h.

◆ m_gender

uint8 Guild::Member::m_gender
private

Definition at line 403 of file Guild.h.

◆ m_guid

ObjectGuid Guild::Member::m_guid
private

Definition at line 397 of file Guild.h.

◆ m_guildId

ObjectGuid::LowType Guild::Member::m_guildId
private

Definition at line 395 of file Guild.h.

◆ m_level

uint8 Guild::Member::m_level
private

Definition at line 400 of file Guild.h.

◆ m_logoutTime

uint64 Guild::Member::m_logoutTime
private

Definition at line 405 of file Guild.h.

◆ m_name

std::string Guild::Member::m_name
private

Definition at line 398 of file Guild.h.

◆ m_officerNote

std::string Guild::Member::m_officerNote
private

Definition at line 410 of file Guild.h.

◆ m_publicNote

std::string Guild::Member::m_publicNote
private

Definition at line 409 of file Guild.h.

◆ m_race

uint8 Guild::Member::m_race
private

Definition at line 401 of file Guild.h.

◆ m_rankId

GuildRankId Guild::Member::m_rankId
private

Definition at line 408 of file Guild.h.

◆ m_totalActivity

uint64 Guild::Member::m_totalActivity
private

Definition at line 417 of file Guild.h.

◆ m_totalReputation

uint32 Guild::Member::m_totalReputation
private

Definition at line 419 of file Guild.h.

◆ m_trackedCriteriaIds

Optional<std::set<uint32> > Guild::Member::m_trackedCriteriaIds
private

Definition at line 412 of file Guild.h.

◆ m_weekActivity

uint64 Guild::Member::m_weekActivity
private

Definition at line 418 of file Guild.h.

◆ m_weekReputation

uint32 Guild::Member::m_weekReputation
private

Definition at line 420 of file Guild.h.

◆ m_zoneId

uint32 Guild::Member::m_zoneId
private

Definition at line 399 of file Guild.h.


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