|
| Member (ObjectGuid::LowType guildId, ObjectGuid guid, uint8 rankId) |
|
void | SetStats (Player *player) |
|
void | SetStats (std::string const &name, uint8 level, uint8 _class, uint8 gender, uint32 zoneId, uint32 accountId, uint32 reputation) |
|
bool | CheckStats () const |
|
void | SetPublicNote (std::string const &publicNote) |
|
void | SetOfficerNote (std::string const &officerNote) |
|
void | SetZoneId (uint32 id) |
|
void | SetAchievementPoints (uint32 val) |
|
void | SetLevel (uint8 var) |
|
void | AddReputation (uint32 &reputation) |
|
void | AddActivity (uint64 activity) |
|
void | AddFlag (uint8 var) |
|
void | RemFlag (uint8 var) |
|
void | ResetFlags () |
|
bool | LoadFromDB (Field *fields) |
|
void | SaveToDB (SQLTransaction &trans) const |
|
ObjectGuid const & | 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 |
|
uint32 | GetAchievementPoints () const |
|
uint64 | GetTotalActivity () const |
|
uint64 | GetWeekActivity () const |
|
uint32 | GetTotalReputation () const |
|
uint32 | GetWeekReputation () const |
|
std::set< uint32 > | GetTrackedCriteriaIds () const |
|
void | SetTrackedCriteriaIds (std::set< uint32 > criteriaIds) |
|
bool | IsTrackingCriteriaId (uint32 criteriaId) const |
|
bool | IsOnline () const |
|
void | ChangeRank (uint8 newRank) |
|
void | UpdateLogoutTime () |
|
bool | IsRank (uint8 rankId) const |
|
bool | IsRankNotLower (uint8 rankId) const |
|
bool | IsSamePlayer (ObjectGuid guid) const |
|
void | UpdateBankWithdrawValue (SQLTransaction &trans, uint8 tabId, uint32 amount) |
|
int32 | GetBankWithdrawValue (uint8 tabId) const |
|
void | ResetValues (bool weekly=false) |
|
Player * | FindPlayer () const |
|
Player * | FindConnectedPlayer () const |
|
uint32 m_accountId
Definition: Guild.h:415
uint32 m_zoneId
Definition: Guild.h:409
uint32 m_achievementPoints
Definition: Guild.h:424
ObjectGuid m_guid
Definition: Guild.h:407
uint32 m_weekReputation
Definition: Guild.h:428
arena_t NULL
Definition: jemalloc_internal.h:624
uint8 m_level
Definition: Guild.h:410
uint32 m_totalReputation
Definition: Guild.h:427
uint64 m_logoutTime
Definition: Guild.h:414
uint64 m_weekActivity
Definition: Guild.h:426
int32_t int32
Definition: Define.h:146
uint8 m_flags
Definition: Guild.h:413
uint8 m_class
Definition: Guild.h:411
uint8 _gender
Definition: Guild.h:412
ObjectGuid::LowType m_guildId
Definition: Guild.h:405
uint64 m_totalActivity
Definition: Guild.h:425
int32 m_bankWithdraw[GUILD_BANK_MAX_TABS+1]
Definition: Guild.h:423
uint8 m_rankId
Definition: Guild.h:417
void Guild::Member::AddActivity |
( |
uint64 |
activity | ) |
|
void Guild::Member::AddFlag |
( |
uint8 |
var | ) |
|
|
inline |
static void var(TextOutput &t, const std::string &name, const std::string &val)
Definition: System.cpp:1582
uint8 m_flags
Definition: Guild.h:413
void Guild::Member::AddReputation |
( |
uint32 & |
reputation | ) |
|
void Guild::Member::ChangeRank |
( |
uint8 |
newRank | ) |
|
558 player->SetRank(newRank);
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
ObjectGuid m_guid
Definition: Guild.h:407
void setUInt8(const uint8 index, const uint8 value)
Definition: PreparedStatement.cpp:97
Definition: PreparedStatement.h:74
Definition: CharacterDatabase.h:185
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
Player * FindPlayer() const
Definition: Guild.h:401
uint8 m_rankId
Definition: Guild.h:417
LowType GetCounter() const
Definition: ObjectGuid.h:221
bool Guild::Member::CheckStats |
( |
| ) |
const |
618 TC_LOG_ERROR(
"guild",
"%s has a broken data in field `characters`.`level`, deleting him from guild!",
m_guid.
ToString().c_str());
622 if (m_class < CLASS_WARRIOR || m_class >=
MAX_CLASSES)
624 TC_LOG_ERROR(
"guild",
"%s has a broken data in field `characters`.`class`, deleting him from guild!",
m_guid.
ToString().c_str());
ObjectGuid m_guid
Definition: Guild.h:407
uint8 m_level
Definition: Guild.h:410
#define MAX_CLASSES
Definition: SharedDefines.h:181
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
std::string ToString() const
Definition: ObjectGuid.cpp:99
Player* Guild::Member::FindConnectedPlayer |
( |
| ) |
const |
|
inline |
ObjectGuid m_guid
Definition: Guild.h:407
TC_GAME_API Player * FindConnectedPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:215
Player* Guild::Member::FindPlayer |
( |
| ) |
const |
|
inline |
ObjectGuid m_guid
Definition: Guild.h:407
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint32 Guild::Member::GetAccountId |
( |
| ) |
const |
|
inline |
uint32 m_accountId
Definition: Guild.h:415
uint32 Guild::Member::GetAchievementPoints |
( |
| ) |
const |
|
inline |
uint32 m_achievementPoints
Definition: Guild.h:424
int32 Guild::Member::GetBankWithdrawValue |
( |
uint8 |
tabId | ) |
const |
bool IsRank(uint8 rankId) const
Definition: Guild.h:393
int32_t int32
Definition: Define.h:146
int32 m_bankWithdraw[GUILD_BANK_MAX_TABS+1]
Definition: Guild.h:423
uint8 Guild::Member::GetClass |
( |
| ) |
const |
|
inline |
uint8 m_class
Definition: Guild.h:411
uint8 Guild::Member::GetFlags |
( |
| ) |
const |
|
inline |
uint8 m_flags
Definition: Guild.h:413
uint8 Guild::Member::GetGender |
( |
| ) |
const |
|
inline |
uint8 _gender
Definition: Guild.h:412
ObjectGuid m_guid
Definition: Guild.h:407
uint8 Guild::Member::GetLevel |
( |
| ) |
const |
|
inline |
uint8 m_level
Definition: Guild.h:410
uint64 Guild::Member::GetLogoutTime |
( |
| ) |
const |
|
inline |
uint64 m_logoutTime
Definition: Guild.h:414
std::string const& Guild::Member::GetName |
( |
| ) |
const |
|
inline |
std::string m_name
Definition: Guild.h:408
std::string Guild::Member::GetOfficerNote |
( |
| ) |
const |
|
inline |
std::string m_officerNote
Definition: Guild.h:419
std::string Guild::Member::GetPublicNote |
( |
| ) |
const |
|
inline |
std::string m_publicNote
Definition: Guild.h:418
uint8 Guild::Member::GetRankId |
( |
| ) |
const |
|
inline |
uint8 m_rankId
Definition: Guild.h:417
uint64 Guild::Member::GetTotalActivity |
( |
| ) |
const |
|
inline |
uint64 m_totalActivity
Definition: Guild.h:425
uint32 Guild::Member::GetTotalReputation |
( |
| ) |
const |
|
inline |
uint32 m_totalReputation
Definition: Guild.h:427
std::set<uint32> Guild::Member::GetTrackedCriteriaIds |
( |
| ) |
const |
|
inline |
std::set< uint32 > m_trackedCriteriaIds
Definition: Guild.h:421
uint64 Guild::Member::GetWeekActivity |
( |
| ) |
const |
|
inline |
uint64 m_weekActivity
Definition: Guild.h:426
uint32 Guild::Member::GetWeekReputation |
( |
| ) |
const |
|
inline |
uint32 m_weekReputation
Definition: Guild.h:428
uint32 Guild::Member::GetZoneId |
( |
| ) |
const |
|
inline |
uint32 m_zoneId
Definition: Guild.h:409
bool Guild::Member::IsOnline |
( |
| ) |
const |
|
inline |
uint8 m_flags
Definition: Guild.h:413
bool Guild::Member::IsRank |
( |
uint8 |
rankId | ) |
const |
|
inline |
uint8 m_rankId
Definition: Guild.h:417
bool Guild::Member::IsRankNotLower |
( |
uint8 |
rankId | ) |
const |
|
inline |
uint8 m_rankId
Definition: Guild.h:417
395 {
return m_guid == guid; }
ObjectGuid m_guid
Definition: Guild.h:407
bool Guild::Member::IsTrackingCriteriaId |
( |
uint32 |
criteriaId | ) |
const |
|
inline |
std::set< uint32 > m_trackedCriteriaIds
Definition: Guild.h:421
bool Guild::Member::LoadFromDB |
( |
Field * |
fields | ) |
|
589 fields[15].GetUInt8(),
590 fields[16].GetUInt8(),
591 fields[17].GetUInt8(),
592 fields[18].GetUInt16(),
593 fields[19].GetUInt32(),
uint32 m_zoneId
Definition: Guild.h:409
ObjectGuid m_guid
Definition: Guild.h:407
std::string m_publicNote
Definition: Guild.h:418
uint32 m_weekReputation
Definition: Guild.h:428
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
void ResetFlags()
Definition: Guild.h:361
uint64 m_logoutTime
Definition: Guild.h:414
uint64 m_weekActivity
Definition: Guild.h:426
bool CheckStats() const
Definition: Guild.cpp:614
uint32 GetUInt32() const
Definition: Field.h:146
uint8_t uint8
Definition: Define.h:152
void SetStats(Player *player)
Definition: Guild.cpp:504
uint64 m_totalActivity
Definition: Guild.h:425
std::string m_officerNote
Definition: Guild.h:419
std::string GetString() const
Definition: Field.h:276
std::string ToString() const
Definition: ObjectGuid.cpp:99
int32 m_bankWithdraw[GUILD_BANK_MAX_TABS+1]
Definition: Guild.h:423
void Guild::Member::RemFlag |
( |
uint8 |
var | ) |
|
|
inline |
static void var(TextOutput &t, const std::string &name, const std::string &val)
Definition: System.cpp:1582
uint8 m_flags
Definition: Guild.h:413
void Guild::Member::ResetFlags |
( |
| ) |
|
|
inline |
uint8 m_flags
Definition: Guild.h:413
void Guild::Member::ResetValues |
( |
bool |
weekly = false | ) |
|
uint32 m_weekReputation
Definition: Guild.h:428
uint64 m_weekActivity
Definition: Guild.h:426
uint8_t uint8
Definition: Define.h:152
int32 m_bankWithdraw[GUILD_BANK_MAX_TABS+1]
Definition: Guild.h:423
void ExecuteOrAppend(SQLTransaction &trans, PreparedStatement *stmt)
Definition: DatabaseWorkerPool.h:236
ObjectGuid m_guid
Definition: Guild.h:407
std::string m_publicNote
Definition: Guild.h:418
void setUInt8(const uint8 index, const uint8 value)
Definition: PreparedStatement.cpp:97
void setString(const uint8 index, const std::string &value)
Definition: PreparedStatement.cpp:187
Definition: CharacterDatabase.h:161
Definition: PreparedStatement.h:74
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
ObjectGuid::LowType m_guildId
Definition: Guild.h:405
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
std::string m_officerNote
Definition: Guild.h:419
uint8 m_rankId
Definition: Guild.h:417
LowType GetCounter() const
Definition: ObjectGuid.h:221
void Guild::Member::SetAchievementPoints |
( |
uint32 |
val | ) |
|
|
inline |
uint32 m_achievementPoints
Definition: Guild.h:424
void Guild::Member::SetLevel |
( |
uint8 |
var | ) |
|
|
inline |
static void var(TextOutput &t, const std::string &name, const std::string &val)
Definition: System.cpp:1582
uint8 m_level
Definition: Guild.h:410
void Guild::Member::SetOfficerNote |
( |
std::string const & |
officerNote | ) |
|
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
ObjectGuid m_guid
Definition: Guild.h:407
void setString(const uint8 index, const std::string &value)
Definition: PreparedStatement.cpp:187
Definition: PreparedStatement.h:74
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
std::string m_officerNote
Definition: Guild.h:419
Definition: CharacterDatabase.h:184
LowType GetCounter() const
Definition: ObjectGuid.h:221
void Guild::Member::SetPublicNote |
( |
std::string const & |
publicNote | ) |
|
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
ObjectGuid m_guid
Definition: Guild.h:407
std::string m_publicNote
Definition: Guild.h:418
void setString(const uint8 index, const std::string &value)
Definition: PreparedStatement.cpp:187
Definition: CharacterDatabase.h:183
Definition: PreparedStatement.h:74
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
LowType GetCounter() const
Definition: ObjectGuid.h:221
void Guild::Member::SetStats |
( |
Player * |
player | ) |
|
506 m_name = player->GetName();
511 m_accountId = player->GetSession()->GetAccountId();
uint32 m_accountId
Definition: Guild.h:415
uint32 m_zoneId
Definition: Guild.h:409
uint32 m_achievementPoints
Definition: Guild.h:424
uint8 m_level
Definition: Guild.h:410
Definition: UpdateFields.h:198
uint8 m_class
Definition: Guild.h:411
std::string m_name
Definition: Guild.h:408
uint8 _gender
Definition: Guild.h:412
uint32 m_accountId
Definition: Guild.h:415
uint32 m_zoneId
Definition: Guild.h:409
uint8 m_level
Definition: Guild.h:410
uint32 m_totalReputation
Definition: Guild.h:427
uint8 m_class
Definition: Guild.h:411
std::string m_name
Definition: Guild.h:408
uint8 _gender
Definition: Guild.h:412
void Guild::Member::SetTrackedCriteriaIds |
( |
std::set< uint32 > |
criteriaIds | ) |
|
|
inline |
std::set< uint32 > m_trackedCriteriaIds
Definition: Guild.h:421
void Guild::Member::SetZoneId |
( |
uint32 |
id | ) |
|
|
inline |
uint32 m_zoneId
Definition: Guild.h:409
void ExecuteOrAppend(SQLTransaction &trans, PreparedStatement *stmt)
Definition: DatabaseWorkerPool.h:236
ObjectGuid m_guid
Definition: Guild.h:407
Definition: PreparedStatement.h:74
Definition: CharacterDatabase.h:196
uint32_t uint32
Definition: Define.h:150
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
uint8_t uint8
Definition: Define.h:152
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
int32 m_bankWithdraw[GUILD_BANK_MAX_TABS+1]
Definition: Guild.h:423
LowType GetCounter() const
Definition: ObjectGuid.h:221
void Guild::Member::UpdateLogoutTime |
( |
| ) |
|
|
inline |
arena_t NULL
Definition: jemalloc_internal.h:624
uint64 m_logoutTime
Definition: Guild.h:414
uint8 Guild::Member::_gender |
|
private |
uint32 Guild::Member::m_accountId |
|
private |
uint32 Guild::Member::m_achievementPoints |
|
private |
uint8 Guild::Member::m_class |
|
private |
uint8 Guild::Member::m_flags |
|
private |
uint8 Guild::Member::m_level |
|
private |
uint64 Guild::Member::m_logoutTime |
|
private |
std::string Guild::Member::m_name |
|
private |
std::string Guild::Member::m_officerNote |
|
private |
std::string Guild::Member::m_publicNote |
|
private |
uint8 Guild::Member::m_rankId |
|
private |
uint64 Guild::Member::m_totalActivity |
|
private |
uint32 Guild::Member::m_totalReputation |
|
private |
std::set<uint32> Guild::Member::m_trackedCriteriaIds |
|
private |
uint64 Guild::Member::m_weekActivity |
|
private |
uint32 Guild::Member::m_weekReputation |
|
private |
uint32 Guild::Member::m_zoneId |
|
private |
The documentation for this class was generated from the following files: