19 #ifndef TRINITYCORE_ARENATEAM_H
20 #define TRINITYCORE_ARENATEAM_H
97 void ModifyMatchmakerRating(
int32 mod,
uint32 slot);
110 #define MAX_ARENA_SLOT 3 // 0..2 slots
130 std::string
const&
GetName()
const {
return TeamName; }
137 bool SetName(std::string
const& name);
139 void DelMember(
ObjectGuid guid,
bool cleanDb);
142 bool Empty()
const {
return Members.empty(); }
150 bool IsFighting()
const;
152 bool LoadArenaTeamFromDB(
QueryResult arenaTeamDataResult);
153 bool LoadMembersFromDB(
QueryResult arenaTeamMembersResult);
154 void LoadStatsFromDB(
uint32 ArenaTeamId);
158 void NotifyStatsChanged();
166 float GetChanceAgainst(
uint32 ownRating,
uint32 opponentRating);
168 void MemberWon(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange);
170 void MemberLost(
Player* player,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
171 void OfflineMemberLost(
ObjectGuid guid,
uint32 againstMatchmakerRating,
int32 MatchmakerRatingChange = -12);
177 void FinishGame(
int32 mod);
ArenaTeamEvents
Definition: ArenaTeam.h:67
size_t GetMembersSize() const
Definition: ArenaTeam.h:141
Definition: ArenaTeam.h:38
Definition: ArenaTeam.h:61
uint16 PersonalRating
Definition: ArenaTeam.h:93
uint16 Rating
Definition: ArenaTeam.h:102
uint8 EmblemStyle
Definition: ArenaTeam.h:187
uint8 Class
Definition: ArenaTeam.h:88
Definition: ArenaTeam.h:59
MemberList::iterator m_membersBegin()
Definition: ArenaTeam.h:143
Definition: ArenaTeam.h:49
uint32 GetType() const
Definition: ArenaTeam.h:125
Definition: ArenaTeam.h:64
uint16 MatchMakerRating
Definition: ArenaTeam.h:94
Definition: ArenaTeam.h:53
std::string const & GetName() const
Definition: ArenaTeam.h:130
Definition: ArenaTeam.h:71
Definition: ArenaTeam.h:52
Stats
Definition: SharedDefines.h:235
Definition: ArenaTeam.h:51
Definition: ArenaTeam.h:54
Definition: ArenaTeam.h:69
uint16 WeekWins
Definition: ArenaTeam.h:90
ArenaTeamCommandTypes
Definition: ArenaTeam.h:34
std::list< ArenaTeamMember > MemberList
Definition: ArenaTeam.h:122
Definition: ArenaTeam.h:80
uint16 WeekGames
Definition: ArenaTeam.h:89
ArenaTeamStats Stats
Definition: ArenaTeam.h:193
const ArenaTeamStats & GetStats() const
Definition: ArenaTeam.h:131
uint32 GetRating() const
Definition: ArenaTeam.h:133
uint8 Type
Definition: ArenaTeam.h:182
Definition: ArenaTeam.h:48
Definition: ArenaTeam.h:36
ArenaTeamCommandErrors
Definition: ArenaTeam.h:42
Definition: ArenaTeam.h:81
Definition: ArenaTeam.h:56
Definition: ArenaTeam.h:63
Definition: ArenaTeam.h:74
ObjectGuid CaptainGuid
Definition: ArenaTeam.h:184
uint8 BorderStyle
Definition: ArenaTeam.h:189
uint32 Rank
Definition: ArenaTeam.h:107
ArenaTeamTypes
Definition: ArenaTeam.h:77
uint16 SeasonWins
Definition: ArenaTeam.h:106
uint32 GetId() const
Definition: ArenaTeam.h:124
bool Empty() const
Definition: ArenaTeam.h:142
Definition: ArenaTeam.h:70
uint16 WeekGames
Definition: ArenaTeam.h:103
uint32 BorderColor
Definition: ArenaTeam.h:190
MemberList Members
Definition: ArenaTeam.h:192
Definition: ArenaTeam.h:45
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
uint16 SeasonGames
Definition: ArenaTeam.h:91
uint16_t uint16
Definition: Define.h:151
Definition: ArenaTeam.h:50
uint32 BackgroundColor
Definition: ArenaTeam.h:186
std::string TeamName
Definition: ArenaTeam.h:183
ObjectGuid Guid
Definition: ArenaTeam.h:86
TeamId
Definition: SharedDefines.h:990
uint16 WeekWins
Definition: ArenaTeam.h:104
uint16 SeasonGames
Definition: ArenaTeam.h:105
Definition: ArenaTeam.h:46
Definition: ArenaTeam.h:62
Definition: ArenaTeam.h:100
Definition: ArenaTeam.h:112
Definition: ArenaTeam.h:44
Definition: ArenaTeam.h:79
Definition: ArenaTeam.h:39
uint16 SeasonWins
Definition: ArenaTeam.h:92
#define TC_GAME_API
Definition: Define.h:134
Definition: ArenaTeam.h:47
Definition: ArenaTeam.h:55
uint8 GetSlot() const
Definition: ArenaTeam.h:126
uint8_t uint8
Definition: Define.h:152
Definition: ArenaTeam.h:57
uint32 EmblemColor
Definition: ArenaTeam.h:188
Definition: ArenaTeam.h:37
Definition: ArenaTeam.h:60
Player session in the World.
Definition: WorldSession.h:882
Definition: ObjectGuid.h:189
Definition: ArenaTeam.h:58
Definition: ArenaTeam.h:73
Type
Type of JSON value.
Definition: rapidjson.h:642
std::string Name
Definition: ArenaTeam.h:87
Definition: WorldPacket.h:26
uint32 TeamId
Definition: ArenaTeam.h:181
ObjectGuid GetCaptain() const
Definition: ArenaTeam.h:129
MemberList::iterator m_membersEnd()
Definition: ArenaTeam.h:144
Definition: ArenaTeam.h:72
Definition: ArenaTeam.h:84