18#ifndef TRINITYCORE_ARENATEAM_H
19#define TRINITYCORE_ARENATEAM_H
101 void ModifyMatchmakerRating(
int32 mod,
uint32 slot);
114#define MAX_ARENA_SLOT 3
134 std::string
const&
GetName()
const {
return TeamName; }
141 bool SetName(std::string
const& name);
143 void DelMember(
ObjectGuid guid,
bool cleanDb);
146 bool Empty()
const {
return Members.empty(); }
154 bool IsFighting()
const;
156 bool LoadArenaTeamFromDB(
QueryResult arenaTeamDataResult);
157 bool LoadMembersFromDB(
QueryResult arenaTeamMembersResult);
159 void SaveToDB(
bool forceMemberSave =
false);
162 void BroadcastEvent(
ArenaTeamEvents event,
ObjectGuid guid,
uint8 strCount, std::string
const& str1, std::string
const& str2, std::string
const& str3);
163 void NotifyStatsChanged();
175 float GetChanceAgainst(
uint32 ownRating,
uint32 opponentRating);
177 void MemberWon(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange);
179 void MemberLost(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
180 void OfflineMemberLost(
ObjectGuid guid,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
182 void UpdateArenaPointsHelper(std::map<uint32, uint32> & PlayerPoints);
185 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_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)
uint32 GetPreviousOpponents()
MemberList::iterator m_membersBegin()
ArenaTeamStats const & GetStats() const
ObjectGuid GetCaptain() const
std::list< ArenaTeamMember > MemberList
size_t GetMembersSize() const
void SetPreviousOpponents(uint32 arenaTeamId)
void LoadStatsFromDB(uint32 ArenaTeamId)
std::string const & GetName() const
MemberList::iterator m_membersEnd()
Player session in the World.