![]() |
TrinityCore
|
#include <ArenaTeam.h>
Public Types | |
| typedef std::list< ArenaTeamMember > | MemberList |
Public Member Functions | |
| ArenaTeam () | |
| ~ArenaTeam () | |
| bool | Create (ObjectGuid captainGuid, uint8 type, std::string const &teamName, uint32 backgroundColor, uint8 emblemStyle, uint32 emblemColor, uint8 borderStyle, uint32 borderColor) |
| void | Disband (WorldSession *session) |
| void | Disband () |
| uint32 | GetId () const |
| uint32 | GetType () const |
| uint8 | GetSlot () const |
| ObjectGuid | GetCaptain () const |
| std::string const & | GetName () const |
| ArenaTeamStats const & | GetStats () const |
| uint32 | GetRating () const |
| uint32 | GetAverageMMR (Group *group) const |
| void | SetCaptain (ObjectGuid guid) |
| bool | SetName (std::string const &name) |
| bool | AddMember (ObjectGuid PlayerGuid) |
| void | DelMember (ObjectGuid guid, bool cleanDb) |
| size_t | GetMembersSize () const |
| bool | Empty () const |
| MemberList::iterator | m_membersBegin () |
| MemberList::iterator | m_membersEnd () |
| bool | IsMember (ObjectGuid guid) const |
| ArenaTeamMember * | GetMember (ObjectGuid guid) |
| ArenaTeamMember * | GetMember (std::string const &name) |
| bool | IsFighting () const |
| bool | LoadArenaTeamFromDB (QueryResult arenaTeamDataResult) |
| bool | LoadMembersFromDB (QueryResult arenaTeamMembersResult) |
| void | LoadStatsFromDB (uint32 ArenaTeamId) |
| void | SaveToDB (bool forceMemberSave=false) |
| void | BroadcastPacket (WorldPacket *packet) |
| void | BroadcastEvent (ArenaTeamEvents event, ObjectGuid guid, uint8 strCount, std::string const &str1, std::string const &str2, std::string const &str3) |
| void | NotifyStatsChanged () |
| void | MassInviteToEvent (WorldSession *session) |
| void | Roster (WorldSession *session) |
| void | Query (WorldSession *session) |
| void | SendStats (WorldSession *session) |
| void | Inspect (WorldSession *session, ObjectGuid guid) |
| uint32 | GetPoints (uint32 MemberRating) |
| int32 | GetMatchmakerRatingMod (uint32 ownRating, uint32 opponentRating, bool won) |
| int32 | GetRatingMod (uint32 ownRating, uint32 opponentRating, bool won) |
| float | GetChanceAgainst (uint32 ownRating, uint32 opponentRating) |
| int32 | WonAgainst (uint32 Own_MMRating, uint32 Opponent_MMRating, int32 &rating_change) |
| void | MemberWon (Player *player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange) |
| int32 | LostAgainst (uint32 Own_MMRating, uint32 Opponent_MMRating, int32 &rating_change) |
| void | MemberLost (Player *player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange=-12) |
| void | OfflineMemberLost (ObjectGuid guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange=-12) |
| void | UpdateArenaPointsHelper (std::map< ObjectGuid, uint32 > &PlayerPoints) |
| bool | FinishWeek () |
| void | FinishGame (int32 mod) |
| void | SetPreviousOpponents (uint32 arenaTeamId) |
| uint32 | GetPreviousOpponents () |
Static Public Member Functions | |
| static uint8 | GetSlotByType (uint32 type) |
| static uint8 | GetTypeBySlot (uint8 slot) |
Protected Attributes | |
| uint32 | TeamId |
| uint8 | Type |
| std::string | TeamName |
| ObjectGuid | CaptainGuid |
| uint32 | BackgroundColor |
| uint8 | EmblemStyle |
| uint32 | EmblemColor |
| uint8 | BorderStyle |
| uint32 | BorderColor |
| MemberList | Members |
| ArenaTeamStats | Stats |
| uint32 | PreviousOpponents |
Definition at line 116 of file ArenaTeam.h.
| typedef std::list<ArenaTeamMember> ArenaTeam::MemberList |
Definition at line 126 of file ArenaTeam.h.
| ArenaTeam::ArenaTeam | ( | ) |
Definition at line 34 of file ArenaTeam.cpp.
References CONFIG_ARENA_START_RATING, and sWorld.
| ArenaTeam::~ArenaTeam | ( | ) |
Definition at line 46 of file ArenaTeam.cpp.
| bool ArenaTeam::AddMember | ( | ObjectGuid | PlayerGuid | ) |
Definition at line 94 of file ArenaTeam.cpp.
References ARENA_TEAM_MEMBER, CaptainGuid, CHAR_INS_ARENA_TEAM_MEMBER, CHAR_SEL_MATCH_MAKER_RATING, CharacterDatabase, ArenaTeamMember::Class, CONFIG_ARENA_START_MATCHMAKER_RATING, CONFIG_ARENA_START_PERSONAL_RATING, ObjectAccessor::FindPlayer(), Player::GetArenaTeamId(), Unit::GetClass(), ObjectGuid::GetCounter(), GetId(), GetMembersSize(), GetName(), WorldObject::GetName(), GetRating(), GetSlot(), GetType(), ArenaTeamMember::Guid, ArenaTeamMember::MatchMakerRating, Members, ArenaTeamMember::Name, ArenaTeamMember::PersonalRating, Player::RemovePetitionsAndSigns(), sCharacterCache, ArenaTeamMember::SeasonGames, ArenaTeamMember::SeasonWins, Player::SetArenaTeamIdInvited(), Player::SetArenaTeamInfoField(), Player::SetInArenaTeam(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), ArenaTeamMember::WeekGames, and ArenaTeamMember::WeekWins.
Referenced by Create(), WorldSession::HandleArenaTeamAcceptOpcode(), and WorldSession::HandleTurnInPetitionOpcode().
| void ArenaTeam::BroadcastEvent | ( | ArenaTeamEvents | event, |
| ObjectGuid | guid, | ||
| uint8 | strCount, | ||
| std::string const & | str1, | ||
| std::string const & | str2, | ||
| std::string const & | str3 | ||
| ) |
Definition at line 554 of file ArenaTeam.cpp.
References BroadcastPacket(), ObjectGuid::IsEmpty(), SMSG_ARENA_TEAM_EVENT, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by Disband(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), and WorldSession::HandleArenaTeamRemoveOpcode().
| void ArenaTeam::BroadcastPacket | ( | WorldPacket * | packet | ) |
Definition at line 547 of file ArenaTeam.cpp.
References ObjectAccessor::FindConnectedPlayer(), and Members.
Referenced by BroadcastEvent().
| bool ArenaTeam::Create | ( | ObjectGuid | captainGuid, |
| uint8 | type, | ||
| std::string const & | teamName, | ||
| uint32 | backgroundColor, | ||
| uint8 | emblemStyle, | ||
| uint32 | emblemColor, | ||
| uint8 | borderStyle, | ||
| uint32 | borderColor | ||
| ) |
Definition at line 49 of file ArenaTeam.cpp.
References AddMember(), BackgroundColor, BorderColor, BorderStyle, CaptainGuid, CHAR_INS_ARENA_TEAM, CharacterDatabase, EmblemColor, EmblemStyle, ObjectGuid::GetCounter(), GetId(), GetName(), GetType(), sArenaTeamMgr, sCharacterCache, PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), TC_LOG_DEBUG, TeamName, and Type.
Referenced by arena_commandscript::HandleArenaCreateCommand(), and WorldSession::HandleTurnInPetitionOpcode().
| void ArenaTeam::DelMember | ( | ObjectGuid | guid, |
| bool | cleanDb | ||
| ) |
Definition at line 315 of file ArenaTeam.cpp.
References ARENA_TEAM_END, BATTLEGROUND_AA, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BuildBattlegroundStatusNone(), CHAR_DEL_ARENA_TEAM_MEMBER, CharacterDatabase, ERR_ARENA_TEAM_QUIT_S, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), Player::GetGroup(), Group::GetGUID(), Object::GetGUID(), GetId(), GetName(), WorldObject::GetName(), BattlegroundQueue::GetPlayerGroupInfoData(), Player::GetSession(), GetSlot(), GetType(), GroupQueueInfo::IsInvitedToBGInstanceGUID, Members, PLAYER_MAX_BATTLEGROUND_QUEUES, BattlegroundQueue::RemovePlayer(), sBattlegroundMgr, sCharacterCache, WorldSession::SendArenaTeamCommandResult(), Player::SetArenaTeamInfoField(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, BattlegroundQueueTypeId::TeamSize, ObjectGuid::ToString(), and WorldPackets::Battleground::BattlefieldStatusNone::Write().
Referenced by Disband(), Disband(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), Player::LeaveAllArenaTeams(), and LoadMembersFromDB().
| void ArenaTeam::Disband | ( | ) |
Definition at line 409 of file ArenaTeam.cpp.
References CHAR_DEL_ARENA_TEAM, CHAR_DEL_ARENA_TEAM_MEMBERS, CharacterDatabase, DelMember(), Members, sArenaTeamMgr, and PreparedStatementBase::setUInt32().
| void ArenaTeam::Disband | ( | WorldSession * | session | ) |
Definition at line 377 of file ArenaTeam.cpp.
References BroadcastEvent(), CHAR_DEL_ARENA_TEAM, CHAR_DEL_ARENA_TEAM_MEMBERS, CharacterDatabase, DelMember(), ObjectGuid::Empty, ERR_ARENA_TEAM_DISBANDED_S, GetId(), GetName(), WorldSession::GetPlayer(), WorldSession::GetPlayerName(), GetType(), Members, sArenaTeamMgr, PreparedStatementBase::setUInt32(), and TC_LOG_DEBUG.
Referenced by arena_commandscript::HandleArenaDisbandCommand(), WorldSession::HandleArenaTeamLeaveOpcode(), and ArenaTeamMgr::LoadArenaTeams().
|
inline |
Definition at line 146 of file ArenaTeam.h.
Referenced by LoadMembersFromDB().
| void ArenaTeam::FinishGame | ( | int32 | mod | ) |
Definition at line 754 of file ArenaTeam.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING, ObjectAccessor::FindConnectedPlayer(), Members, sArenaTeamMgr, and Type.
Referenced by Arena::EndBattleground(), LostAgainst(), and WonAgainst().
| bool ArenaTeam::FinishWeek | ( | ) |
Definition at line 964 of file ArenaTeam.cpp.
References Members.
Definition at line 661 of file ArenaTeam.cpp.
References ObjectAccessor::FindConnectedPlayer(), Group::IsMember(), and Members.
Referenced by WorldSession::HandleBattlemasterJoinArena().
|
inline |
Definition at line 133 of file ArenaTeam.h.
Referenced by Player::_LoadArenaTeamInfo(), arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaCreateCommand(), arena_commandscript::HandleArenaInfoCommand(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), LoadMembersFromDB(), Roster(), and SetCaptain().
Definition at line 691 of file ArenaTeam.cpp.
Referenced by GetMatchmakerRatingMod(), and GetRatingMod().
|
inline |
Definition at line 128 of file ArenaTeam.h.
Referenced by ArenaTeamMgr::AddArenaTeam(), AddMember(), Create(), DelMember(), Disband(), Arena::EndBattleground(), arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaCreateCommand(), arena_commandscript::HandleArenaInfoCommand(), arena_commandscript::HandleArenaRenameCommand(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleTurnInPetitionOpcode(), Inspect(), LoadMembersFromDB(), Query(), Roster(), SaveToDB(), SendStats(), SetCaptain(), and SetName().
Definition at line 698 of file ArenaTeam.cpp.
References CONFIG_ARENA_MATCHMAKER_RATING_MODIFIER, GetChanceAgainst(), and sWorld.
Referenced by LostAgainst(), and WonAgainst().
| ArenaTeamMember * ArenaTeam::GetMember | ( | ObjectGuid | guid | ) |
Definition at line 1003 of file ArenaTeam.cpp.
References Members.
Referenced by WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), Inspect(), and AchievementMgr::UpdateAchievementCriteria().
| ArenaTeamMember * ArenaTeam::GetMember | ( | std::string const & | name | ) |
Definition at line 994 of file ArenaTeam.cpp.
References Members.
|
inline |
Definition at line 145 of file ArenaTeam.h.
Referenced by AddMember(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), and Roster().
|
inline |
Definition at line 134 of file ArenaTeam.h.
Referenced by BattlegroundQueue::AddGroup(), AddMember(), Create(), DelMember(), Disband(), Arena::EndBattleground(), arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaCreateCommand(), arena_commandscript::HandleArenaDisbandCommand(), arena_commandscript::HandleArenaInfoCommand(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), Query(), and SetCaptain().
Definition at line 633 of file ArenaTeam.cpp.
References ARENA_TEAM_2v2, ARENA_TEAM_3v3, CONFIG_ARENA_SEASON_ID, RATE_ARENA_POINTS, sWorld, and Type.
Referenced by UpdateArenaPointsHelper().
|
inline |
Definition at line 188 of file ArenaTeam.h.
Referenced by WorldSession::HandleBattlemasterJoinArena().
|
inline |
Definition at line 137 of file ArenaTeam.h.
Referenced by AddMember(), Arena::EndBattleground(), arena_commandscript::HandleArenaInfoCommand(), and WorldSession::HandleBattlemasterJoinArena().
Definition at line 724 of file ArenaTeam.cpp.
References CONFIG_ARENA_LOSE_RATING_MODIFIER, CONFIG_ARENA_WIN_RATING_MODIFIER_1, CONFIG_ARENA_WIN_RATING_MODIFIER_2, GetChanceAgainst(), and sWorld.
Referenced by LostAgainst(), MemberLost(), MemberWon(), OfflineMemberLost(), and WonAgainst().
|
inline |
Definition at line 130 of file ArenaTeam.h.
Referenced by Player::_LoadArenaTeamInfo(), AddMember(), DelMember(), Arena::EndBattleground(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), Inspect(), LoadMembersFromDB(), MemberLost(), MemberWon(), OfflineMemberLost(), SaveToDB(), and SetCaptain().
Definition at line 596 of file ArenaTeam.cpp.
References ARENA_TEAM_2v2, ARENA_TEAM_3v3, ARENA_TEAM_5v5, and TC_LOG_ERROR.
Referenced by CharacterCache::GetCharacterArenaTeamIdByGuid(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), ArenaTeamMember::ModifyPersonalRating(), and AchievementMgr::RequirementsSatisfied().
|
inline |
Definition at line 135 of file ArenaTeam.h.
Referenced by AchievementMgr::UpdateAchievementCriteria().
|
inline |
Definition at line 129 of file ArenaTeam.h.
Referenced by Player::_LoadArenaTeamInfo(), AddMember(), Create(), DelMember(), Disband(), arena_commandscript::HandleArenaCreateCommand(), arena_commandscript::HandleArenaInfoCommand(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), MemberLost(), MemberWon(), OfflineMemberLost(), Query(), Roster(), SetCaptain(), and AchievementMgr::UpdateAchievementCriteria().
Definition at line 610 of file ArenaTeam.cpp.
References ARENA_TEAM_2v2, ARENA_TEAM_3v3, ARENA_TEAM_5v5, and TC_LOG_ERROR.
Referenced by WorldSession::HandleBattlemasterJoinArena().
| void ArenaTeam::Inspect | ( | WorldSession * | session, |
| ObjectGuid | guid | ||
| ) |
Definition at line 507 of file ArenaTeam.cpp.
References GetId(), GetMember(), GetSlot(), MSG_INSPECT_ARENA_TEAMS, ArenaTeamMember::PersonalRating, ArenaTeamMember::SeasonGames, and WorldSession::SendPacket().
| bool ArenaTeam::IsFighting | ( | ) | const |
Definition at line 984 of file ArenaTeam.cpp.
References ObjectAccessor::FindPlayer(), and Members.
Referenced by arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaDisbandCommand(), arena_commandscript::HandleArenaRenameCommand(), and WorldSession::HandleArenaTeamRemoveOpcode().
| bool ArenaTeam::IsMember | ( | ObjectGuid | guid | ) | const |
Definition at line 624 of file ArenaTeam.cpp.
References Members.
Referenced by arena_commandscript::HandleArenaCaptainCommand().
| bool ArenaTeam::LoadArenaTeamFromDB | ( | QueryResult | arenaTeamDataResult | ) |
Definition at line 187 of file ArenaTeam.cpp.
References BackgroundColor, BorderColor, BorderStyle, CaptainGuid, EmblemColor, EmblemStyle, Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), TeamName, and Type.
Referenced by ArenaTeamMgr::LoadArenaTeams().
| bool ArenaTeam::LoadMembersFromDB | ( | QueryResult | arenaTeamMembersResult | ) |
Definition at line 213 of file ArenaTeam.cpp.
References ArenaTeamMember::Class, CONFIG_ARENA_START_MATCHMAKER_RATING, DelMember(), Empty(), GetCaptain(), GetId(), GetSlot(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), ArenaTeamMember::Guid, ArenaTeamMember::MatchMakerRating, Members, ArenaTeamMember::Name, ArenaTeamMember::PersonalRating, sCharacterCache, ArenaTeamMember::SeasonGames, ArenaTeamMember::SeasonWins, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), ArenaTeamMember::WeekGames, and ArenaTeamMember::WeekWins.
Referenced by ArenaTeamMgr::LoadArenaTeams().
| void ArenaTeam::LoadStatsFromDB | ( | uint32 | ArenaTeamId | ) |
| int32 ArenaTeam::LostAgainst | ( | uint32 | Own_MMRating, |
| uint32 | Opponent_MMRating, | ||
| int32 & | rating_change | ||
| ) |
Definition at line 800 of file ArenaTeam.cpp.
References FinishGame(), GetMatchmakerRatingMod(), and GetRatingMod().
Referenced by Arena::EndBattleground().
|
inline |
Definition at line 147 of file ArenaTeam.h.
Referenced by arena_commandscript::HandleArenaInfoCommand().
|
inline |
Definition at line 148 of file ArenaTeam.h.
Referenced by arena_commandscript::HandleArenaInfoCommand().
| void ArenaTeam::MassInviteToEvent | ( | WorldSession * | session | ) |
Definition at line 585 of file ArenaTeam.cpp.
References Object::GetGUID(), WorldSession::GetPlayer(), WorldPackets::Calendar::CalendarEventInitialInvites::Invites, Members, WorldSession::SendPacket(), and WorldPackets::Calendar::CalendarEventInitialInvites::Write().
| void ArenaTeam::MemberLost | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange = -12 |
||
| ) |
Definition at line 816 of file ArenaTeam.cpp.
References ARENA_TEAM_GAMES_SEASON, ARENA_TEAM_GAMES_WEEK, Object::GetGUID(), GetRatingMod(), GetSlot(), GetType(), Members, and Player::SetArenaTeamInfoField().
Referenced by Arena::EndBattleground(), and Arena::RemovePlayerAtLeave().
| void ArenaTeam::MemberWon | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange | ||
| ) |
Definition at line 864 of file ArenaTeam.cpp.
References ARENA_TEAM_GAMES_SEASON, ARENA_TEAM_GAMES_WEEK, Object::GetGUID(), GetRatingMod(), GetSlot(), GetType(), Members, and Player::SetArenaTeamInfoField().
Referenced by Arena::EndBattleground().
| void ArenaTeam::NotifyStatsChanged | ( | ) |
Definition at line 498 of file ArenaTeam.cpp.
References ObjectAccessor::FindConnectedPlayer(), Members, and SendStats().
Referenced by Arena::EndBattleground().
| void ArenaTeam::OfflineMemberLost | ( | ObjectGuid | guid, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange = -12 |
||
| ) |
Definition at line 842 of file ArenaTeam.cpp.
References GetRatingMod(), GetSlot(), GetType(), and Members.
Referenced by Arena::EndBattleground(), and Arena::RemovePlayerAtLeave().
| void ArenaTeam::Query | ( | WorldSession * | session | ) |
Definition at line 470 of file ArenaTeam.cpp.
References BackgroundColor, BorderColor, BorderStyle, EmblemColor, EmblemStyle, GetId(), GetName(), GetType(), WorldSession::SendPacket(), SMSG_ARENA_TEAM_QUERY_RESPONSE, and TC_LOG_DEBUG.
| void ArenaTeam::Roster | ( | WorldSession * | session | ) |
Definition at line 432 of file ArenaTeam.cpp.
References ObjectAccessor::FindConnectedPlayer(), GetCaptain(), GetId(), Unit::GetLevel(), GetMembersSize(), GetType(), Members, WorldSession::SendPacket(), SMSG_ARENA_TEAM_ROSTER, and TC_LOG_DEBUG.
| void ArenaTeam::SaveToDB | ( | bool | forceMemberSave = false | ) |
Definition at line 921 of file ArenaTeam.cpp.
References CHAR_REP_CHARACTER_ARENA_STATS, CHAR_UPD_ARENA_TEAM_MEMBER, CHAR_UPD_ARENA_TEAM_STATS, CharacterDatabase, GetId(), GetSlot(), Members, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by Arena::EndBattleground().
| void ArenaTeam::SendStats | ( | WorldSession * | session | ) |
Definition at line 485 of file ArenaTeam.cpp.
References GetId(), WorldSession::SendPacket(), and SMSG_ARENA_TEAM_STATS.
Referenced by NotifyStatsChanged().
| void ArenaTeam::SetCaptain | ( | ObjectGuid | guid | ) |
Definition at line 286 of file ArenaTeam.cpp.
References ARENA_TEAM_MEMBER, CaptainGuid, CHAR_UPD_ARENA_TEAM_CAPTAIN, CharacterDatabase, ObjectAccessor::FindPlayer(), GetCaptain(), ObjectGuid::GetCounter(), Object::GetGUID(), GetId(), GetName(), WorldObject::GetName(), GetSlot(), GetType(), Player::SetArenaTeamInfoField(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by arena_commandscript::HandleArenaCaptainCommand(), and WorldSession::HandleArenaTeamLeaderOpcode().
| bool ArenaTeam::SetName | ( | std::string const & | name | ) |
Definition at line 273 of file ArenaTeam.cpp.
References CHAR_UPD_ARENA_TEAM_NAME, CharacterDatabase, GetId(), ObjectMgr::IsValidCharterName(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sObjectMgr, and TeamName.
Referenced by arena_commandscript::HandleArenaRenameCommand().
|
inline |
Definition at line 187 of file ArenaTeam.h.
Referenced by Arena::EndBattleground().
| void ArenaTeam::UpdateArenaPointsHelper | ( | std::map< ObjectGuid, uint32 > & | PlayerPoints | ) |
Definition at line 891 of file ArenaTeam.cpp.
References GetPoints(), and Members.
| int32 ArenaTeam::WonAgainst | ( | uint32 | Own_MMRating, |
| uint32 | Opponent_MMRating, | ||
| int32 & | rating_change | ||
| ) |
Definition at line 780 of file ArenaTeam.cpp.
References FinishGame(), GetMatchmakerRatingMod(), and GetRatingMod().
Referenced by Arena::EndBattleground().
|
protected |
Definition at line 197 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and Query().
|
protected |
Definition at line 201 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and Query().
|
protected |
Definition at line 200 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and Query().
|
protected |
Definition at line 195 of file ArenaTeam.h.
Referenced by AddMember(), Create(), LoadArenaTeamFromDB(), and SetCaptain().
|
protected |
Definition at line 199 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and Query().
|
protected |
Definition at line 198 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and Query().
|
protected |
Definition at line 203 of file ArenaTeam.h.
Referenced by AddMember(), BroadcastPacket(), DelMember(), Disband(), Disband(), FinishGame(), FinishWeek(), GetAverageMMR(), GetMember(), GetMember(), IsFighting(), IsMember(), LoadMembersFromDB(), MassInviteToEvent(), MemberLost(), MemberWon(), NotifyStatsChanged(), OfflineMemberLost(), Roster(), SaveToDB(), and UpdateArenaPointsHelper().
|
protected |
Definition at line 206 of file ArenaTeam.h.
|
protected |
Definition at line 204 of file ArenaTeam.h.
|
protected |
Definition at line 192 of file ArenaTeam.h.
|
protected |
Definition at line 194 of file ArenaTeam.h.
Referenced by Create(), LoadArenaTeamFromDB(), and SetName().
|
protected |
Definition at line 193 of file ArenaTeam.h.
Referenced by Create(), FinishGame(), GetPoints(), and LoadArenaTeamFromDB().