18#ifndef TRINITYCORE_ARENATEAM_H
19#define TRINITYCORE_ARENATEAM_H
96 void ModifyMatchmakerRating(
int32 mod,
uint32 slot);
109#define MAX_ARENA_SLOT 3
133 std::string
const&
GetName()
const {
return TeamName; }
140 bool SetName(std::string
const& name);
142 void DelMember(
ObjectGuid guid,
bool cleanDb);
145 bool Empty()
const {
return Members.empty(); }
153 bool IsFighting()
const;
155 bool LoadArenaTeamFromDB(
QueryResult arenaTeamDataResult);
156 bool LoadMembersFromDB(
QueryResult arenaTeamMembersResult);
158 void SaveToDB(
bool forceMemberSave =
false);
161 void NotifyStatsChanged();
169 float GetChanceAgainst(
uint32 ownRating,
uint32 opponentRating);
171 void MemberWon(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange);
173 void MemberLost(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
174 void OfflineMemberLost(
ObjectGuid guid,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
177 void FinishGame(
int32 mod);
@ 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
std::shared_ptr< ResultSet > QueryResult
static void SaveToDB(QuestPool const &pool, CharacterDatabaseTransaction trans)
MemberList::iterator m_membersBegin()
ArenaTeam(ArenaTeam const &)=delete
ArenaTeam(ArenaTeam &&)=delete
ArenaTeamStats const & GetStats() const
ObjectGuid GetCaptain() const
std::list< ArenaTeamMember > MemberList
size_t GetMembersSize() const
void LoadStatsFromDB(uint32 ArenaTeamId)
std::string const & GetName() const
ArenaTeam & operator=(ArenaTeam &&)=delete
uint32 GetPoints(uint32 MemberRating)
ArenaTeam & operator=(ArenaTeam const &)=delete
MemberList::iterator m_membersEnd()
Player session in the World.