aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/ArenaTeam.h
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2019-07-08 12:51:42 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-14 23:04:29 +0100
commit3ad5bc1e15574e1534fe60e06772d4b293cdf13c (patch)
tree578571e2f9cd64dfff6cab45662856e8de90a05d /src/server/game/Battlegrounds/ArenaTeam.h
parent2532de6acb7d73957a8fca44e7fc26160f47cc47 (diff)
Core/Misc: More coding standards (#23519)
* Core/Misc: More coding standards * revert part * "void " or more to "void " * fix? reject * remove more double whitespaces * remove more double whitespaces * more standards * more coding standards * More standards * more coding * more coding standards * more coding standards * And more standards (cherry picked from commit 574a7c8d3d5f5a5660295deb70e905cf4dd756c4)
Diffstat (limited to 'src/server/game/Battlegrounds/ArenaTeam.h')
-rw-r--r--src/server/game/Battlegrounds/ArenaTeam.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/server/game/Battlegrounds/ArenaTeam.h b/src/server/game/Battlegrounds/ArenaTeam.h
index 0c40635150e..fcd8b266cd4 100644
--- a/src/server/game/Battlegrounds/ArenaTeam.h
+++ b/src/server/game/Battlegrounds/ArenaTeam.h
@@ -122,7 +122,7 @@ class TC_GAME_API ArenaTeam
uint32 GetId() const { return TeamId; }
uint32 GetType() const { return Type; }
- uint8 GetSlot() const { return GetSlotByType(GetType()); }
+ uint8 GetSlot() const { return GetSlotByType(GetType()); }
static uint8 GetSlotByType(uint32 type);
static uint8 GetTypeBySlot(uint8 slot);
ObjectGuid GetCaptain() const { return CaptainGuid; }
@@ -137,10 +137,10 @@ class TC_GAME_API ArenaTeam
bool AddMember(ObjectGuid PlayerGuid);
void DelMember(ObjectGuid guid, bool cleanDb);
- size_t GetMembersSize() const { return Members.size(); }
- bool Empty() const { return Members.empty(); }
+ size_t GetMembersSize() const { return Members.size(); }
+ bool Empty() const { return Members.empty(); }
MemberList::iterator m_membersBegin() { return Members.begin(); }
- MemberList::iterator m_membersEnd() { return Members.end(); }
+ MemberList::iterator m_membersEnd() { return Members.end(); }
bool IsMember(ObjectGuid guid) const;
ArenaTeamMember* GetMember(ObjectGuid guid);
@@ -160,14 +160,14 @@ class TC_GAME_API ArenaTeam
void Inspect(WorldSession* session, ObjectGuid guid);
uint32 GetPoints(uint32 MemberRating);
- int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
- int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
- float GetChanceAgainst(uint32 ownRating, uint32 opponentRating);
- int32 WonAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change);
- void MemberWon(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange);
- int32 LostAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change);
- void MemberLost(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
- void OfflineMemberLost(ObjectGuid guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
+ int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
+ int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
+ float GetChanceAgainst(uint32 ownRating, uint32 opponentRating);
+ int32 WonAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change);
+ void MemberWon(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange);
+ int32 LostAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change);
+ void MemberLost(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
+ void OfflineMemberLost(ObjectGuid guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
@@ -178,14 +178,14 @@ class TC_GAME_API ArenaTeam
protected:
uint32 TeamId;
- uint8 Type;
+ uint8 Type;
std::string TeamName;
- ObjectGuid CaptainGuid;
+ ObjectGuid CaptainGuid;
uint32 BackgroundColor; // ARGB format
- uint8 EmblemStyle; // icon id
+ uint8 EmblemStyle; // icon id
uint32 EmblemColor; // ARGB format
- uint8 BorderStyle; // border image id
+ uint8 BorderStyle; // border image id
uint32 BorderColor; // ARGB format
MemberList Members;