![]() |
TrinityCore
|
#include <ArenaTeam.h>
Public Types | |
typedef std::list< ArenaTeamMember > | MemberList |
Public Member Functions | |
ArenaTeam () | |
~ArenaTeam () | |
bool | Create (ObjectGuid captainGuid, uint8 type, std::string const &teamName, uint32 backgroundColor, uint8 emblemStyle, uint32 emblemColor, uint8 borderStyle, uint32 borderColor) |
void | Disband (WorldSession *session) |
void | Disband () |
uint32 | GetId () const |
uint32 | GetType () const |
uint8 | GetSlot () const |
ObjectGuid | GetCaptain () const |
std::string const & | GetName () const |
ArenaTeamStats const & | GetStats () const |
uint32 | GetRating () const |
uint32 | GetAverageMMR (Group *group) const |
void | SetCaptain (ObjectGuid guid) |
bool | SetName (std::string const &name) |
bool | AddMember (ObjectGuid PlayerGuid) |
void | DelMember (ObjectGuid guid, bool cleanDb) |
size_t | GetMembersSize () const |
bool | Empty () const |
MemberList::iterator | m_membersBegin () |
MemberList::iterator | m_membersEnd () |
bool | IsMember (ObjectGuid guid) const |
ArenaTeamMember * | GetMember (ObjectGuid guid) |
ArenaTeamMember * | GetMember (std::string const &name) |
bool | IsFighting () const |
bool | LoadArenaTeamFromDB (QueryResult arenaTeamDataResult) |
bool | LoadMembersFromDB (QueryResult arenaTeamMembersResult) |
void | LoadStatsFromDB (uint32 ArenaTeamId) |
void | SaveToDB (bool forceMemberSave=false) |
void | BroadcastPacket (WorldPacket *packet) |
void | NotifyStatsChanged () |
void | SendStats (WorldSession *session) |
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) |
bool | FinishWeek () |
void | FinishGame (int32 mod) |
Static Public Member Functions | |
static uint8 | GetSlotByType (uint32 type) |
static uint8 | GetTypeBySlot (uint8 slot) |
Protected Attributes | |
uint32 | TeamId |
uint8 | Type |
std::string | TeamName |
ObjectGuid | CaptainGuid |
uint32 | BackgroundColor |
uint8 | EmblemStyle |
uint32 | EmblemColor |
uint8 | BorderStyle |
uint32 | BorderColor |
MemberList | Members |
ArenaTeamStats | Stats |
Definition at line 111 of file ArenaTeam.h.
typedef std::list<ArenaTeamMember> ArenaTeam::MemberList |
Definition at line 121 of file ArenaTeam.h.
ArenaTeam::ArenaTeam | ( | ) |
Definition at line 32 of file ArenaTeam.cpp.
ArenaTeam::~ArenaTeam | ( | ) |
Definition at line 44 of file ArenaTeam.cpp.
bool ArenaTeam::AddMember | ( | ObjectGuid | PlayerGuid | ) |
Definition at line 92 of file ArenaTeam.cpp.
void ArenaTeam::BroadcastPacket | ( | WorldPacket * | packet | ) |
Definition at line 460 of file ArenaTeam.cpp.
bool ArenaTeam::Create | ( | ObjectGuid | captainGuid, |
uint8 | type, | ||
std::string const & | teamName, | ||
uint32 | backgroundColor, | ||
uint8 | emblemStyle, | ||
uint32 | emblemColor, | ||
uint8 | borderStyle, | ||
uint32 | borderColor | ||
) |
Definition at line 47 of file ArenaTeam.cpp.
void ArenaTeam::DelMember | ( | ObjectGuid | guid, |
bool | cleanDb | ||
) |
Definition at line 313 of file ArenaTeam.cpp.
void ArenaTeam::Disband | ( | ) |
Definition at line 375 of file ArenaTeam.cpp.
void ArenaTeam::Disband | ( | WorldSession * | session | ) |
Definition at line 345 of file ArenaTeam.cpp.
|
inline |
void ArenaTeam::FinishGame | ( | int32 | mod | ) |
Definition at line 597 of file ArenaTeam.cpp.
bool ArenaTeam::FinishWeek | ( | ) |
Definition at line 777 of file ArenaTeam.cpp.
Definition at line 504 of file ArenaTeam.cpp.
|
inline |
Definition at line 534 of file ArenaTeam.cpp.
|
inline |
Definition at line 541 of file ArenaTeam.cpp.
ArenaTeamMember * ArenaTeam::GetMember | ( | ObjectGuid | guid | ) |
Definition at line 816 of file ArenaTeam.cpp.
ArenaTeamMember * ArenaTeam::GetMember | ( | std::string const & | name | ) |
Definition at line 807 of file ArenaTeam.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 567 of file ArenaTeam.cpp.
|
inline |
Definition at line 467 of file ArenaTeam.cpp.
|
inline |
Definition at line 130 of file ArenaTeam.h.
|
inline |
Definition at line 481 of file ArenaTeam.cpp.
void ArenaTeam::Inspect | ( | WorldSession * | session, |
ObjectGuid | guid | ||
) |
Definition at line 420 of file ArenaTeam.cpp.
bool ArenaTeam::IsFighting | ( | ) | const |
Definition at line 797 of file ArenaTeam.cpp.
bool ArenaTeam::IsMember | ( | ObjectGuid | guid | ) | const |
Definition at line 495 of file ArenaTeam.cpp.
bool ArenaTeam::LoadArenaTeamFromDB | ( | QueryResult | arenaTeamDataResult | ) |
Definition at line 185 of file ArenaTeam.cpp.
bool ArenaTeam::LoadMembersFromDB | ( | QueryResult | arenaTeamMembersResult | ) |
Definition at line 211 of file ArenaTeam.cpp.
void ArenaTeam::LoadStatsFromDB | ( | uint32 | ArenaTeamId | ) |
int32 ArenaTeam::LostAgainst | ( | uint32 | Own_MMRating, |
uint32 | Opponent_MMRating, | ||
int32 & | rating_change | ||
) |
Definition at line 643 of file ArenaTeam.cpp.
|
inline |
|
inline |
void ArenaTeam::MemberLost | ( | Player * | player, |
uint32 | againstMatchmakerRating, | ||
int32 | MatchmakerRatingChange = -12 |
||
) |
Definition at line 659 of file ArenaTeam.cpp.
void ArenaTeam::MemberWon | ( | Player * | player, |
uint32 | againstMatchmakerRating, | ||
int32 | MatchmakerRatingChange | ||
) |
Definition at line 707 of file ArenaTeam.cpp.
void ArenaTeam::NotifyStatsChanged | ( | ) |
Definition at line 411 of file ArenaTeam.cpp.
void ArenaTeam::OfflineMemberLost | ( | ObjectGuid | guid, |
uint32 | againstMatchmakerRating, | ||
int32 | MatchmakerRatingChange = -12 |
||
) |
Definition at line 685 of file ArenaTeam.cpp.
void ArenaTeam::SaveToDB | ( | bool | forceMemberSave = false | ) |
Definition at line 734 of file ArenaTeam.cpp.
void ArenaTeam::SendStats | ( | WorldSession * | session | ) |
Definition at line 398 of file ArenaTeam.cpp.
void ArenaTeam::SetCaptain | ( | ObjectGuid | guid | ) |
Definition at line 284 of file ArenaTeam.cpp.
bool ArenaTeam::SetName | ( | std::string const & | name | ) |
Definition at line 271 of file ArenaTeam.cpp.
int32 ArenaTeam::WonAgainst | ( | uint32 | Own_MMRating, |
uint32 | Opponent_MMRating, | ||
int32 & | rating_change | ||
) |
Definition at line 623 of file ArenaTeam.cpp.
|
protected |
Definition at line 182 of file ArenaTeam.h.
|
protected |
Definition at line 186 of file ArenaTeam.h.
|
protected |
Definition at line 185 of file ArenaTeam.h.
|
protected |
Definition at line 180 of file ArenaTeam.h.
|
protected |
Definition at line 184 of file ArenaTeam.h.
|
protected |
Definition at line 183 of file ArenaTeam.h.
|
protected |
Definition at line 188 of file ArenaTeam.h.
|
protected |
Definition at line 189 of file ArenaTeam.h.
|
protected |
Definition at line 177 of file ArenaTeam.h.
|
protected |
Definition at line 179 of file ArenaTeam.h.
|
protected |
Definition at line 178 of file ArenaTeam.h.