|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| void | AddActivity (uint64 activity) |
| void | AddFlag (uint8 var) |
| void | AddReputation (uint32 &reputation) |
| void | ChangeRank (uint8 newRank) |
| bool | CheckStats () const |
| Player * | FindPlayer () const |
| uint32 | GetAccountId () const |
| uint32 | GetAchievementPoints () const |
| int32 | GetBankWithdrawValue (uint8 tabId) const |
| uint8 | GetClass () const |
| uint8 | GetFlags () const |
| uint64 | GetGUID () const |
| uint8 | GetLevel () const |
| uint64 | GetLogoutTime () const |
| std::string const & | GetName () const |
| std::string | GetOfficerNote () const |
| std::string | GetPublicNote () const |
| uint8 | GetRankId () const |
| uint64 | GetTotalActivity () const |
| uint32 | GetTotalReputation () const |
| uint32 | GetVirtualRealm () const |
| uint64 | GetWeekActivity () const |
| uint32 | GetWeekReputation () const |
| uint32 | GetZoneId () const |
| bool | IsOnline () const |
| bool | IsRank (uint8 rankId) const |
| bool | IsRankNotLower (uint8 rankId) const |
| bool | IsSamePlayer (uint64 guid) const |
| bool | LoadFromDB (Field *fields) |
| Member (uint32 guildId, uint64 guid, uint8 rankId) | |
| void | RemFlag (uint8 var) |
| void | ResetFlags () |
| void | ResetValues (bool weekly=false) |
| void | SaveToDB (SQLTransaction &trans) const |
| void | SetAchievementPoints (uint32 val) |
| void | SetLevel (uint8 var) |
| void | SetOfficerNote (std::string const &officerNote) |
| void | SetPublicNote (std::string const &publicNote) |
| void | SetStats (Player *player) |
| void | SetStats (uint32 virtualRealmID, std::string const &name, uint8 level, uint8 _class, uint32 zoneId, uint32 accountId, uint32 reputation) |
| void | SetZoneId (uint32 id) |
| void | UpdateBankWithdrawValue (SQLTransaction &trans, uint8 tabId, uint32 amount) |
| void | UpdateLogoutTime () |
Private Attributes | |
| uint32 | m_accountId |
| uint32 | m_achievementPoints |
| int32 | m_bankWithdraw [GUILD_BANK_MAX_TABS+1] |
| uint8 | m_class |
| uint8 | m_flags |
| uint64 | m_guid |
| uint32 | m_guildId |
| uint8 | m_level |
| uint64 | m_logoutTime |
| uint32 | m_memberVRealm |
| std::string | m_name |
| std::string | m_officerNote |
| std::string | m_publicNote |
| uint8 | m_rankId |
| uint64 | m_totalActivity |
| uint32 | m_totalReputation |
| uint64 | m_weekActivity |
| uint32 | m_weekReputation |
| uint32 | m_zoneId |
Definition at line 330 of file Guild.h.
References GUILD_BANK_MAX_TABS, GUILDMEMBER_STATUS_NONE, m_accountId, m_achievementPoints, m_bankWithdraw, m_class, m_flags, m_guid, m_guildId, m_level, m_logoutTime, m_rankId, m_totalActivity, m_totalReputation, m_weekActivity, m_weekReputation, and m_zoneId.
| void Guild::Member::AddActivity | ( | uint64 | activity | ) |
|
inline |
| void Guild::Member::AddReputation | ( | uint32 & | reputation | ) |
| void Guild::Member::ChangeRank | ( | uint8 | newRank | ) |
Definition at line 656 of file Guild.cpp.
References CHAR_UPD_GUILD_MEMBER_RANK, CharacterDatabase, FindPlayer(), GUID_LOPART(), m_guid, m_rankId, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by Guild::_SetLeaderGUID(), and Guild::SendGuildRanksUpdate().
| bool Guild::Member::CheckStats | ( | ) | const |
Definition at line 717 of file Guild.cpp.
References GUID_LOPART(), m_guid, m_level, MAX_CLASSES, and SF_LOG_ERROR.
Referenced by Guild::AddMember(), and LoadFromDB().
|
inline |
Definition at line 399 of file Guild.h.
References ObjectAccessor::FindPlayer(), and m_guid.
Referenced by ChangeRank(), and Guild::DeleteMember().
|
inline |
Definition at line 371 of file Guild.h.
References m_accountId.
|
inline |
Definition at line 380 of file Guild.h.
References m_achievementPoints.
Referenced by Guild::HandleRoster().
Definition at line 766 of file Guild.cpp.
References GR_GUILDMASTER, GUILD_BANK_MAX_TABS, GUILD_WITHDRAW_MONEY_UNLIMITED, GUILD_WITHDRAW_SLOT_UNLIMITED, IsRank(), and m_bankWithdraw.
Referenced by Guild::_GetMemberRemainingMoney(), and Guild::_GetMemberRemainingSlots().
|
inline |
|
inline |
|
inline |
Definition at line 368 of file Guild.h.
References m_guid.
Referenced by Guild::_SendSetNewGuildMaster(), Guild::_SetLeaderGUID(), Guild::HandleRoster(), and Guild::MassInviteToEvent().
|
inline |
|
inline |
Definition at line 373 of file Guild.h.
References m_logoutTime.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 370 of file Guild.h.
References m_name.
Referenced by Guild::_SendSetNewGuildMaster(), Guild::DeleteMember(), and Guild::HandleRoster().
|
inline |
Definition at line 375 of file Guild.h.
References m_officerNote.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 374 of file Guild.h.
References m_publicNote.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 372 of file Guild.h.
References m_rankId.
Referenced by Guild::_GetMemberRemainingMoney(), Guild::_GetMemberRemainingSlots(), Guild::DeleteMember(), Guild::HandleRemoveMember(), Guild::HandleRoster(), Guild::HandleSetMemberRank(), Guild::HandleUpdateMemberRank(), and Guild::SendPermissions().
|
inline |
Definition at line 381 of file Guild.h.
References m_totalActivity.
Referenced by Guild::HandleRoster(), and Guild::SendGuildXP().
|
inline |
Definition at line 383 of file Guild.h.
References m_totalReputation.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 369 of file Guild.h.
References m_memberVRealm.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 382 of file Guild.h.
References m_weekActivity.
Referenced by Guild::HandleRoster(), and Guild::SendGuildXP().
|
inline |
Definition at line 384 of file Guild.h.
References m_weekReputation.
Referenced by Guild::HandleRoster(), and Guild::SendLoginInfo().
|
inline |
|
inline |
Definition at line 386 of file Guild.h.
References GUILDMEMBER_STATUS_ONLINE, and m_flags.
Referenced by Guild::HandleRoster().
|
inline |
Definition at line 391 of file Guild.h.
References m_rankId.
Referenced by GetBankWithdrawValue(), and Guild::Validate().
|
inline |
Definition at line 392 of file Guild.h.
References m_rankId.
Referenced by Guild::HandleRemoveMember().
|
inline |
Definition at line 393 of file Guild.h.
References m_guid.
Referenced by Guild::HandleSetMemberRank().
| bool Guild::Member::LoadFromDB | ( | Field * | fields | ) |
Definition at line 684 of file Guild.cpp.
References CheckStats(), Field::GetString(), Field::GetUInt32(), Player::GetZoneIdFromDB(), GUID_LOPART(), GUILD_BANK_MAX_TABS, m_bankWithdraw, m_guid, m_logoutTime, m_officerNote, m_publicNote, m_totalActivity, m_weekActivity, m_weekReputation, m_zoneId, ResetFlags(), SetStats(), and SF_LOG_ERROR.
Referenced by Guild::LoadMemberFromDB().
|
inline |
|
inline |
Definition at line 363 of file Guild.h.
References GUILDMEMBER_STATUS_NONE, and m_flags.
Referenced by Guild::AddMember(), and LoadFromDB().
| void Guild::Member::ResetValues | ( | bool | weekly = false | ) |
Definition at line 751 of file Guild.cpp.
References GUILD_BANK_MAX_TABS, m_bankWithdraw, m_weekActivity, and m_weekReputation.
| void Guild::Member::SaveToDB | ( | SQLTransaction & | trans | ) | const |
Definition at line 670 of file Guild.cpp.
References CHAR_INS_GUILD_MEMBER, CharacterDatabase, GUID_LOPART(), m_guid, m_guildId, m_officerNote, m_publicNote, m_rankId, PreparedStatement::setString(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by Guild::AddMember().
|
inline |
Definition at line 356 of file Guild.h.
References m_achievementPoints.
|
inline |
| void Guild::Member::SetOfficerNote | ( | std::string const & | officerNote | ) |
Definition at line 643 of file Guild.cpp.
References CHAR_UPD_GUILD_MEMBER_OFFNOTE, CharacterDatabase, GUID_LOPART(), m_guid, m_officerNote, PreparedStatement::setString(), and PreparedStatement::setUInt32().
| void Guild::Member::SetPublicNote | ( | std::string const & | publicNote | ) |
Definition at line 630 of file Guild.cpp.
References CHAR_UPD_GUILD_MEMBER_PNOTE, CharacterDatabase, GUID_LOPART(), m_guid, m_publicNote, PreparedStatement::setString(), and PreparedStatement::setUInt32().
| void Guild::Member::SetStats | ( | Player * | player | ) |
Definition at line 608 of file Guild.cpp.
References WorldSession::GetAccountId(), Player::GetAchievementPoints(), Unit::getClass(), Unit::getLevel(), WorldObject::GetName(), Player::GetSession(), Unit::getVirtualRealm(), WorldObject::GetZoneId(), m_accountId, m_achievementPoints, m_class, m_level, m_memberVRealm, m_name, and m_zoneId.
Referenced by Guild::AddMember(), LoadFromDB(), and Guild::SendLoginInfo().
| void Guild::Member::SetStats | ( | uint32 | virtualRealmID, |
| std::string const & | name, | ||
| uint8 | level, | ||
| uint8 | _class, | ||
| uint32 | zoneId, | ||
| uint32 | accountId, | ||
| uint32 | reputation ) |
Definition at line 619 of file Guild.cpp.
References m_accountId, m_class, m_level, m_memberVRealm, m_name, m_totalReputation, and m_zoneId.
|
inline |
| void Guild::Member::UpdateBankWithdrawValue | ( | SQLTransaction & | trans, |
| uint8 | tabId, | ||
| uint32 | amount ) |
Definition at line 736 of file Guild.cpp.
References CHAR_INS_GUILD_MEMBER_WITHDRAW, CharacterDatabase, GUID_LOPART(), GUILD_BANK_MAX_TABS, m_bankWithdraw, m_guid, and PreparedStatement::setUInt32().
Referenced by Guild::HandleMemberWithdrawMoney().
|
inline |
Definition at line 390 of file Guild.h.
References m_logoutTime.
|
private |
Definition at line 412 of file Guild.h.
Referenced by GetAccountId(), Member(), SetStats(), and SetStats().
|
private |
Definition at line 419 of file Guild.h.
Referenced by GetAchievementPoints(), Member(), SetAchievementPoints(), and SetStats().
|
private |
Definition at line 418 of file Guild.h.
Referenced by GetBankWithdrawValue(), LoadFromDB(), Member(), ResetValues(), and UpdateBankWithdrawValue().
|
private |
Definition at line 409 of file Guild.h.
Referenced by GetClass(), Member(), SetStats(), and SetStats().
|
private |
Definition at line 410 of file Guild.h.
Referenced by AddFlag(), GetFlags(), IsOnline(), Member(), RemFlag(), and ResetFlags().
|
private |
Definition at line 404 of file Guild.h.
Referenced by ChangeRank(), CheckStats(), FindPlayer(), GetGUID(), IsSamePlayer(), LoadFromDB(), Member(), SaveToDB(), SetOfficerNote(), SetPublicNote(), and UpdateBankWithdrawValue().
|
private |
Definition at line 402 of file Guild.h.
Referenced by Member(), and SaveToDB().
|
private |
Definition at line 408 of file Guild.h.
Referenced by CheckStats(), GetLevel(), Member(), SetLevel(), SetStats(), and SetStats().
|
private |
Definition at line 411 of file Guild.h.
Referenced by GetLogoutTime(), LoadFromDB(), Member(), and UpdateLogoutTime().
|
private |
Definition at line 405 of file Guild.h.
Referenced by GetVirtualRealm(), SetStats(), and SetStats().
|
private |
Definition at line 406 of file Guild.h.
Referenced by GetName(), SetStats(), and SetStats().
|
private |
Definition at line 416 of file Guild.h.
Referenced by GetOfficerNote(), LoadFromDB(), SaveToDB(), and SetOfficerNote().
|
private |
Definition at line 415 of file Guild.h.
Referenced by GetPublicNote(), LoadFromDB(), SaveToDB(), and SetPublicNote().
|
private |
Definition at line 414 of file Guild.h.
Referenced by ChangeRank(), GetRankId(), IsRank(), IsRankNotLower(), Member(), and SaveToDB().
|
private |
Definition at line 420 of file Guild.h.
Referenced by GetTotalActivity(), LoadFromDB(), and Member().
|
private |
Definition at line 422 of file Guild.h.
Referenced by GetTotalReputation(), Member(), and SetStats().
|
private |
Definition at line 421 of file Guild.h.
Referenced by GetWeekActivity(), LoadFromDB(), Member(), and ResetValues().
|
private |
Definition at line 423 of file Guild.h.
Referenced by GetWeekReputation(), LoadFromDB(), Member(), and ResetValues().
|
private |
Definition at line 407 of file Guild.h.
Referenced by GetZoneId(), LoadFromDB(), Member(), SetStats(), SetStats(), and SetZoneId().