TrinityCore
Loading...
Searching...
No Matches
Guild::Member Class Reference

Public Member Functions

 Member (ObjectGuid::LowType guildId, ObjectGuid guid, uint8 rankId)
 
void SetStats (Player *player)
 
void SetStats (std::string_view name, uint8 level, uint8 _class, uint8 gender, uint32 zoneId, uint32 accountId)
 
bool CheckStats () const
 
void SetPublicNote (std::string_view publicNote)
 
void SetOfficerNote (std::string_view officerNote)
 
void SetZoneID (uint32 id)
 
void SetLevel (uint8 var)
 
void AddFlag (uint8 var)
 
void RemFlag (uint8 var)
 
void ResetFlags ()
 
bool LoadFromDB (Field *fields)
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
ObjectGuid GetGUID () const
 
std::string const & GetName () const
 
uint32 GetAccountId () const
 
uint8 GetRankId () const
 
uint64 GetLogoutTime () const
 
std::string GetPublicNote () const
 
std::string GetOfficerNote () const
 
uint8 GetClass () const
 
uint8 GetGender () const
 
uint8 GetLevel () const
 
uint8 GetFlags () const
 
uint32 GetZoneId () const
 
bool IsOnline () const
 
void ChangeRank (CharacterDatabaseTransaction trans, uint8 newRank)
 
void UpdateLogoutTime ()
 
bool IsRank (uint8 rankId) const
 
bool IsRankNotLower (uint8 rankId) const
 
bool IsSamePlayer (ObjectGuid guid) const
 
void UpdateBankWithdrawValue (CharacterDatabaseTransaction trans, uint8 tabId, uint32 amount)
 
int32 GetBankWithdrawValue (uint8 tabId) const
 
void ResetValues ()
 
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_class
 
uint8 m_gender
 
uint8 m_flags
 
uint64 m_logoutTime
 
uint32 m_accountId
 
uint8 m_rankId
 
std::string m_publicNote
 
std::string m_officerNote
 
std::array< int32, GUILD_BANK_MAX_TABS+1 > m_bankWithdraw = {}
 

Detailed Description

Definition at line 287 of file Guild.h.

Constructor & Destructor Documentation

◆ Member()

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

Definition at line 519 of file Guild.cpp.

Member Function Documentation

◆ AddFlag()

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

Definition at line 301 of file Guild.h.

◆ ChangeRank()

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

Definition at line 578 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 641 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ FindConnectedPlayer()

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

Definition at line 662 of file Guild.cpp.

+ Here is the call graph for this function:

◆ FindPlayer()

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

Definition at line 657 of file Guild.cpp.

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

◆ GetAccountId()

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

Definition at line 310 of file Guild.h.

◆ GetBankWithdrawValue()

int32 Guild::Member::GetBankWithdrawValue ( uint8  tabId) const

Definition at line 694 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ GetClass()

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

Definition at line 315 of file Guild.h.

◆ GetFlags()

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

Definition at line 318 of file Guild.h.

◆ GetGender()

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

Definition at line 316 of file Guild.h.

◆ GetGUID()

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

Definition at line 308 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetLevel()

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

Definition at line 317 of file Guild.h.

◆ GetLogoutTime()

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

Definition at line 312 of file Guild.h.

◆ GetName()

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

Definition at line 309 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetOfficerNote()

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

Definition at line 314 of file Guild.h.

◆ GetPublicNote()

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

Definition at line 313 of file Guild.h.

◆ GetRankId()

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

Definition at line 311 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetZoneId()

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

Definition at line 319 of file Guild.h.

◆ IsOnline()

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

Definition at line 320 of file Guild.h.

◆ IsRank()

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

Definition at line 325 of file Guild.h.

+ Here is the caller graph for this function:

◆ IsRankNotLower()

bool Guild::Member::IsRankNotLower ( uint8  rankId) const
inline

Definition at line 326 of file Guild.h.

+ Here is the caller graph for this function:

◆ IsSamePlayer()

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

Definition at line 327 of file Guild.h.

◆ LoadFromDB()

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

Definition at line 611 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 302 of file Guild.h.

◆ ResetFlags()

void Guild::Member::ResetFlags ( )
inline

Definition at line 303 of file Guild.h.

+ Here is the caller graph for this function:

◆ ResetValues()

void Guild::Member::ResetValues ( )

Definition at line 685 of file Guild.cpp.

◆ SaveToDB()

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

Definition at line 597 of file Guild.cpp.

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

◆ SetLevel()

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

Definition at line 299 of file Guild.h.

◆ SetOfficerNote()

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

Definition at line 565 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetPublicNote()

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

Definition at line 552 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetStats() [1/2]

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

Definition at line 532 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  _class,
uint8  gender,
uint32  zoneId,
uint32  accountId 
)

Definition at line 542 of file Guild.cpp.

◆ SetZoneID()

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

Definition at line 298 of file Guild.h.

◆ UpdateBankWithdrawValue()

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

Definition at line 670 of file Guild.cpp.

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

◆ UpdateLogoutTime()

void Guild::Member::UpdateLogoutTime ( )
inline

Definition at line 592 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 347 of file Guild.h.

◆ m_bankWithdraw

std::array<int32, GUILD_BANK_MAX_TABS + 1> Guild::Member::m_bankWithdraw = {}
private

Definition at line 353 of file Guild.h.

◆ m_class

uint8 Guild::Member::m_class
private

Definition at line 343 of file Guild.h.

◆ m_flags

uint8 Guild::Member::m_flags
private

Definition at line 345 of file Guild.h.

◆ m_gender

uint8 Guild::Member::m_gender
private

Definition at line 344 of file Guild.h.

◆ m_guid

ObjectGuid Guild::Member::m_guid
private

Definition at line 339 of file Guild.h.

◆ m_guildId

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

Definition at line 337 of file Guild.h.

◆ m_level

uint8 Guild::Member::m_level
private

Definition at line 342 of file Guild.h.

◆ m_logoutTime

uint64 Guild::Member::m_logoutTime
private

Definition at line 346 of file Guild.h.

◆ m_name

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

Definition at line 340 of file Guild.h.

◆ m_officerNote

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

Definition at line 351 of file Guild.h.

◆ m_publicNote

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

Definition at line 350 of file Guild.h.

◆ m_rankId

uint8 Guild::Member::m_rankId
private

Definition at line 349 of file Guild.h.

◆ m_zoneId

uint32 Guild::Member::m_zoneId
private

Definition at line 341 of file Guild.h.


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