6#ifndef SKYFIRESERVER_ARENATEAM_H
7#define SKYFIRESERVER_ARENATEAM_H
96#define MAX_ARENA_SLOT 3
@ ERR_ARENA_TEAM_FOUNDER_S
@ ERR_ARENA_TEAM_INVITE_SS
@ ERR_ARENA_TEAM_CREATE_S
@ ERR_ARENA_TEAM_TOO_MANY_MEMBERS_S
@ ERR_ARENA_TEAM_TARGET_TOO_HIGH_S
@ ERR_ARENA_TEAM_NAME_INVALID
@ ERR_ALREADY_IN_ARENA_TEAM_S
@ ERR_ARENA_TEAM_INTERNAL
@ ERR_INVITED_TO_ARENA_TEAM
@ ERR_ALREADY_IN_ARENA_TEAM
@ ERR_ARENA_TEAM_IGNORING_YOU_S
@ ERR_ARENA_TEAM_NOT_FOUND
@ ERR_ARENA_TEAM_PLAYER_NOT_IN_TEAM
@ ERR_ARENA_TEAM_LEADER_LEAVE_S
@ ERR_ARENA_TEAM_PERMISSIONS
@ ERR_ARENA_TEAM_NOT_ALLIED
@ ERR_ARENA_TEAM_TARGET_TOO_LOW_S
@ ERR_ARENA_TEAM_PLAYER_NOT_FOUND_S
@ ERR_ALREADY_INVITED_TO_ARENA_TEAM_S
@ ERR_ARENA_TEAM_NAME_EXISTS_S
@ ERR_ARENA_TEAM_TOO_MANY_CREATE
@ ERR_ARENA_TEAM_PLAYER_NOT_IN_TEAM_SS
@ ERR_ARENA_TEAM_LEADER_CHANGED_SSS
@ ERR_ARENA_TEAM_REMOVE_SSS
@ ERR_ARENA_TEAM_LEAVE_SS
@ ERR_ARENA_TEAM_DISBANDED_S
@ ERR_ARENA_TEAM_LEADER_IS_SS
uint64 GetCaptain() const
int32 WonAgainst(uint32 ownMMRating, uint32 opponentMMRating, int32 &rating_change)
MemberList::iterator m_membersBegin()
static float GetChanceAgainst(uint32 ownRating, uint32 opponentRating)
std::list< ArenaTeamMember > MemberList
static int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won)
size_t GetMembersSize() const
bool IsMember(uint64 guid) const
void OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=-12)
void BroadcastEvent(ArenaTeamEvents event, uint64 guid, uint8 strCount, std::string const &str1, std::string const &str2, std::string const &str3)
static int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won)
void SendStats(WorldSession *session)
void MemberWon(Player *player, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=12)
void FinishGame(int32 mod)
void NotifyStatsChanged()
void MassInviteToEvent(WorldSession *session)
void BroadcastPacket(WorldPacket *packet)
uint32 GetAverageMMR(Group *group) const
void MemberLost(Player *player, uint32 againstMatchmakerRating, int32 matchmakerRatingChange=-12)
std::string const & GetName() const
const ArenaTeamStats & GetStats() const
ArenaTeamMember * GetMember(uint64 guid)
MemberList::iterator m_membersEnd()
static uint8 GetTypeBySlot(uint8 slot)
int32 LostAgainst(uint32 ownMMRating, uint32 opponentMMRating, int32 &rating_change)
static uint8 GetSlotByType(uint32 type)
Player session in the World.
void ModifyPersonalRating(Player *player, int32 mod, uint32 type)
void ModifyMatchmakerRating(int32 mod, uint32 slot)