|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ArenaTeam.h>
Public Types | |
| typedef std::list< ArenaTeamMember > | MemberList |
Public Member Functions | |
| ArenaTeam () | |
| void | BroadcastEvent (ArenaTeamEvents event, uint64 guid, uint8 strCount, std::string const &str1, std::string const &str2, std::string const &str3) |
| void | BroadcastPacket (WorldPacket *packet) |
| bool | Empty () const |
| void | FinishGame (int32 mod) |
| void | FinishWeek () |
| uint32 | GetAverageMMR (Group *group) const |
| uint64 | GetCaptain () const |
| uint32 | GetId () const |
| ArenaTeamMember * | GetMember (std::string const &name) |
| ArenaTeamMember * | GetMember (uint64 guid) |
| size_t | GetMembersSize () const |
| std::string const & | GetName () const |
| uint32 | GetRating () const |
| uint8 | GetSlot () const |
| const ArenaTeamStats & | GetStats () const |
| uint32 | GetType () const |
| bool | IsFighting () const |
| bool | IsMember (uint64 guid) const |
| int32 | LostAgainst (uint32 ownMMRating, uint32 opponentMMRating, int32 &rating_change) |
| MemberList::iterator | m_membersBegin () |
| MemberList::iterator | m_membersEnd () |
| void | MassInviteToEvent (WorldSession *session) |
| void | MemberLost (Player *player, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=-12) |
| void | MemberWon (Player *player, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=12) |
| void | NotifyStatsChanged () |
| void | OfflineMemberLost (uint64 guid, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=-12) |
| void | SendStats (WorldSession *session) |
| int32 | WonAgainst (uint32 ownMMRating, uint32 opponentMMRating, int32 &rating_change) |
| ~ArenaTeam () | |
Static Public Member Functions | |
| static float | GetChanceAgainst (uint32 ownRating, uint32 opponentRating) |
| static int32 | GetMatchmakerRatingMod (uint32 ownRating, uint32 opponentRating, bool won) |
| static int32 | GetRatingMod (uint32 ownRating, uint32 opponentRating, bool won) |
| static uint8 | GetSlotByType (uint32 type) |
| static uint8 | GetTypeBySlot (uint8 slot) |
Protected Attributes | |
| uint32 | BackgroundColor |
| uint32 | BorderColor |
| uint8 | BorderStyle |
| uint64 | CaptainGuid |
| uint32 | EmblemColor |
| uint8 | EmblemStyle |
| MemberList | Members |
| ArenaTeamStats | Stats |
| uint32 | TeamId |
| std::string | TeamName |
| uint8 | Type |
Definition at line 98 of file ArenaTeam.h.
| typedef std::list<ArenaTeamMember> ArenaTeam::MemberList |
Definition at line 104 of file ArenaTeam.h.
| ArenaTeam::ArenaTeam | ( | ) |
Definition at line 16 of file ArenaTeam.cpp.
References BackgroundColor, BorderColor, BorderStyle, CaptainGuid, CONFIG_ARENA_START_RATING, EmblemColor, EmblemStyle, Stats, sWorld, TeamId, TeamName, and Type.
| ArenaTeam::~ArenaTeam | ( | ) |
Definition at line 28 of file ArenaTeam.cpp.
| void ArenaTeam::BroadcastEvent | ( | ArenaTeamEvents | event, |
| uint64 | guid, | ||
| uint8 | strCount, | ||
| std::string const & | str1, | ||
| std::string const & | str2, | ||
| std::string const & | str3 ) |
Definition at line 82 of file ArenaTeam.cpp.
References BroadcastPacket(), SF_LOG_DEBUG, SF_LOG_ERROR, and SMSG_ARENA_TEAM_EVENT.
| void ArenaTeam::BroadcastPacket | ( | WorldPacket * | packet | ) |
Definition at line 75 of file ArenaTeam.cpp.
References ObjectAccessor::FindPlayer(), and Members.
Referenced by BroadcastEvent().
|
inline |
Definition at line 119 of file ArenaTeam.h.
References Members.
| void ArenaTeam::FinishGame | ( | int32 | mod | ) |
Definition at line 254 of file ArenaTeam.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING, ObjectAccessor::FindPlayer(), Members, sArenaTeamMgr, Stats, and Type.
Referenced by Battleground::EndBattleground(), LostAgainst(), and WonAgainst().
| void ArenaTeam::FinishWeek | ( | ) |
Definition at line 395 of file ArenaTeam.cpp.
Definition at line 167 of file ArenaTeam.cpp.
References ObjectAccessor::FindPlayer(), Group::IsMember(), and Members.
|
inline |
Definition at line 111 of file ArenaTeam.h.
References CaptainGuid.
Definition at line 197 of file ArenaTeam.cpp.
Referenced by GetMatchmakerRatingMod(), and GetRatingMod().
|
inline |
Definition at line 106 of file ArenaTeam.h.
References TeamId.
Referenced by ArenaTeamMgr::AddArenaTeam(), Battleground::EndBattleground(), and SendStats().
|
static |
Definition at line 204 of file ArenaTeam.cpp.
References GetChanceAgainst().
Referenced by LostAgainst(), and WonAgainst().
| ArenaTeamMember * ArenaTeam::GetMember | ( | std::string const & | name | ) |
Definition at line 419 of file ArenaTeam.cpp.
References Members.
| ArenaTeamMember * ArenaTeam::GetMember | ( | uint64 | guid | ) |
Definition at line 428 of file ArenaTeam.cpp.
References Members.
|
inline |
Definition at line 118 of file ArenaTeam.h.
References Members.
|
inline |
Definition at line 112 of file ArenaTeam.h.
References TeamName.
|
inline |
Definition at line 115 of file ArenaTeam.h.
References Stats.
Referenced by Battleground::EndBattleground().
Definition at line 230 of file ArenaTeam.cpp.
References GetChanceAgainst().
Referenced by LostAgainst(), MemberLost(), MemberWon(), OfflineMemberLost(), and WonAgainst().
|
inline |
Definition at line 108 of file ArenaTeam.h.
References GetSlotByType(), and GetType().
Referenced by Battleground::EndBattleground(), MemberLost(), MemberWon(), and OfflineMemberLost().
Definition at line 130 of file ArenaTeam.cpp.
References ARENA_TEAM_2v2, ARENA_TEAM_3v3, ARENA_TEAM_5v5, and SF_LOG_ERROR.
Referenced by GetSlot().
|
inline |
Definition at line 113 of file ArenaTeam.h.
References Stats.
|
inline |
Definition at line 107 of file ArenaTeam.h.
References Type.
Referenced by GetSlot(), MemberLost(), MemberWon(), and OfflineMemberLost().
Definition at line 144 of file ArenaTeam.cpp.
References ARENA_TEAM_2v2, ARENA_TEAM_3v3, ARENA_TEAM_5v5, and SF_LOG_ERROR.
Referenced by WorldSession::HandleBattlemasterJoinArena().
| bool ArenaTeam::IsFighting | ( | ) | const |
Definition at line 409 of file ArenaTeam.cpp.
References ObjectAccessor::FindPlayer(), and Members.
| bool ArenaTeam::IsMember | ( | uint64 | guid | ) | const |
Definition at line 158 of file ArenaTeam.cpp.
References Members.
Definition at line 303 of file ArenaTeam.cpp.
References FinishGame(), GetMatchmakerRatingMod(), GetRatingMod(), and Stats.
Referenced by Battleground::EndBattleground().
|
inline |
Definition at line 120 of file ArenaTeam.h.
References Members.
|
inline |
Definition at line 121 of file ArenaTeam.h.
References Members.
| void ArenaTeam::MassInviteToEvent | ( | WorldSession * | session | ) |
Definition at line 113 of file ArenaTeam.cpp.
References ByteBuffer::appendPackGUID(), Object::GetGUID(), WorldSession::GetPlayer(), Members, WorldSession::SendPacket(), and SMSG_CALENDAR_ARENA_TEAM.
| void ArenaTeam::MemberLost | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | matchmakerRatingChange = -12 ) |
Definition at line 319 of file ArenaTeam.cpp.
References Object::GetGUID(), GetRatingMod(), GetSlot(), GetType(), and Members.
Referenced by Battleground::EndBattleground(), and Battleground::RemovePlayerAtLeave().
| void ArenaTeam::MemberWon | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | matchmakerRatingChange = 12 ) |
Definition at line 367 of file ArenaTeam.cpp.
References Object::GetGUID(), GetRatingMod(), GetSlot(), GetType(), and Members.
Referenced by Battleground::EndBattleground().
| void ArenaTeam::NotifyStatsChanged | ( | ) |
Definition at line 44 of file ArenaTeam.cpp.
References ObjectAccessor::FindPlayer(), Members, and SendStats().
Referenced by Battleground::EndBattleground().
| void ArenaTeam::OfflineMemberLost | ( | uint64 | guid, |
| uint32 | againstMatchmakerRating, | ||
| int32 | matchmakerRatingChange = -12 ) |
Definition at line 345 of file ArenaTeam.cpp.
References GetRatingMod(), GetSlot(), GetType(), and Members.
Referenced by Battleground::EndBattleground(), and Battleground::RemovePlayerAtLeave().
| void ArenaTeam::SendStats | ( | WorldSession * | session | ) |
Definition at line 31 of file ArenaTeam.cpp.
References GetId(), WorldSession::SendPacket(), SMSG_ARENA_TEAM_STATS, and Stats.
Referenced by NotifyStatsChanged().
Definition at line 283 of file ArenaTeam.cpp.
References FinishGame(), GetMatchmakerRatingMod(), GetRatingMod(), and Stats.
Referenced by Battleground::EndBattleground().
|
protected |
Definition at line 157 of file ArenaTeam.h.
Referenced by ArenaTeam().
|
protected |
Definition at line 161 of file ArenaTeam.h.
Referenced by ArenaTeam().
|
protected |
Definition at line 160 of file ArenaTeam.h.
Referenced by ArenaTeam().
|
protected |
Definition at line 155 of file ArenaTeam.h.
Referenced by ArenaTeam(), and GetCaptain().
|
protected |
Definition at line 159 of file ArenaTeam.h.
Referenced by ArenaTeam().
|
protected |
Definition at line 158 of file ArenaTeam.h.
Referenced by ArenaTeam().
|
protected |
Definition at line 163 of file ArenaTeam.h.
Referenced by BroadcastPacket(), Empty(), FinishGame(), FinishWeek(), GetAverageMMR(), GetMember(), GetMember(), GetMembersSize(), IsFighting(), IsMember(), m_membersBegin(), m_membersEnd(), MassInviteToEvent(), MemberLost(), MemberWon(), NotifyStatsChanged(), and OfflineMemberLost().
|
protected |
Definition at line 164 of file ArenaTeam.h.
Referenced by ArenaTeam(), FinishGame(), FinishWeek(), GetRating(), GetStats(), LostAgainst(), SendStats(), and WonAgainst().
|
protected |
Definition at line 152 of file ArenaTeam.h.
Referenced by ArenaTeam(), and GetId().
|
protected |
Definition at line 154 of file ArenaTeam.h.
Referenced by ArenaTeam(), and GetName().
|
protected |
Definition at line 153 of file ArenaTeam.h.
Referenced by ArenaTeam(), FinishGame(), and GetType().