![]() |
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 | BroadcastEvent (ArenaTeamEvents event, ObjectGuid guid, uint8 strCount, std::string const &str1, std::string const &str2, std::string const &str3) |
| void | NotifyStatsChanged () |
| void | MassInviteToEvent (WorldSession *session) |
| void | Roster (WorldSession *session) |
| void | Query (WorldSession *session) |
| 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) |
| void | UpdateArenaPointsHelper (std::map< ObjectGuid, uint32 > &PlayerPoints) |
| bool | FinishWeek () |
| void | FinishGame (int32 mod) |
| void | SetPreviousOpponents (uint32 arenaTeamId) |
| uint32 | GetPreviousOpponents () |
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 |
| uint32 | PreviousOpponents |
Definition at line 116 of file ArenaTeam.h.
| typedef std::list<ArenaTeamMember> ArenaTeam::MemberList |
Definition at line 126 of file ArenaTeam.h.
| ArenaTeam::ArenaTeam | ( | ) |
Definition at line 34 of file ArenaTeam.cpp.
| ArenaTeam::~ArenaTeam | ( | ) |
Definition at line 46 of file ArenaTeam.cpp.
| bool ArenaTeam::AddMember | ( | ObjectGuid | PlayerGuid | ) |
Definition at line 94 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::BroadcastEvent | ( | ArenaTeamEvents | event, |
| ObjectGuid | guid, | ||
| uint8 | strCount, | ||
| std::string const & | str1, | ||
| std::string const & | str2, | ||
| std::string const & | str3 | ||
| ) |
Definition at line 554 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::BroadcastPacket | ( | WorldPacket * | packet | ) |
Definition at line 547 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ArenaTeam::Create | ( | ObjectGuid | captainGuid, |
| uint8 | type, | ||
| std::string const & | teamName, | ||
| uint32 | backgroundColor, | ||
| uint8 | emblemStyle, | ||
| uint32 | emblemColor, | ||
| uint8 | borderStyle, | ||
| uint32 | borderColor | ||
| ) |
Definition at line 49 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::DelMember | ( | ObjectGuid | guid, |
| bool | cleanDb | ||
| ) |
Definition at line 315 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::Disband | ( | ) |
| void ArenaTeam::Disband | ( | WorldSession * | session | ) |
Definition at line 377 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void ArenaTeam::FinishGame | ( | int32 | mod | ) |
Definition at line 754 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ArenaTeam::FinishWeek | ( | ) |
Definition at line 964 of file ArenaTeam.cpp.
Definition at line 661 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 698 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| ArenaTeamMember * ArenaTeam::GetMember | ( | ObjectGuid | guid | ) |
| ArenaTeamMember * ArenaTeam::GetMember | ( | std::string const & | name | ) |
Definition at line 994 of file ArenaTeam.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 724 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
| void ArenaTeam::Inspect | ( | WorldSession * | session, |
| ObjectGuid | guid | ||
| ) |
| bool ArenaTeam::IsFighting | ( | ) | const |
Definition at line 984 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ArenaTeam::IsMember | ( | ObjectGuid | guid | ) | const |
| bool ArenaTeam::LoadArenaTeamFromDB | ( | QueryResult | arenaTeamDataResult | ) |
Definition at line 187 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ArenaTeam::LoadMembersFromDB | ( | QueryResult | arenaTeamMembersResult | ) |
Definition at line 213 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::LoadStatsFromDB | ( | uint32 | ArenaTeamId | ) |
| int32 ArenaTeam::LostAgainst | ( | uint32 | Own_MMRating, |
| uint32 | Opponent_MMRating, | ||
| int32 & | rating_change | ||
| ) |
Definition at line 800 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| void ArenaTeam::MassInviteToEvent | ( | WorldSession * | session | ) |
| void ArenaTeam::MemberLost | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange = -12 |
||
| ) |
Definition at line 816 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::MemberWon | ( | Player * | player, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange | ||
| ) |
Definition at line 864 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::NotifyStatsChanged | ( | ) |
Definition at line 498 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::OfflineMemberLost | ( | ObjectGuid | guid, |
| uint32 | againstMatchmakerRating, | ||
| int32 | MatchmakerRatingChange = -12 |
||
| ) |
Definition at line 842 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::Query | ( | WorldSession * | session | ) |
| void ArenaTeam::Roster | ( | WorldSession * | session | ) |
| void ArenaTeam::SaveToDB | ( | bool | forceMemberSave = false | ) |
Definition at line 921 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::SendStats | ( | WorldSession * | session | ) |
Definition at line 485 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ArenaTeam::SetCaptain | ( | ObjectGuid | guid | ) |
Definition at line 286 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ArenaTeam::SetName | ( | std::string const & | name | ) |
Definition at line 273 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void ArenaTeam::UpdateArenaPointsHelper | ( | std::map< ObjectGuid, uint32 > & | PlayerPoints | ) |
| int32 ArenaTeam::WonAgainst | ( | uint32 | Own_MMRating, |
| uint32 | Opponent_MMRating, | ||
| int32 & | rating_change | ||
| ) |
Definition at line 780 of file ArenaTeam.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 197 of file ArenaTeam.h.
|
protected |
Definition at line 201 of file ArenaTeam.h.
|
protected |
Definition at line 200 of file ArenaTeam.h.
|
protected |
Definition at line 195 of file ArenaTeam.h.
|
protected |
Definition at line 199 of file ArenaTeam.h.
|
protected |
Definition at line 198 of file ArenaTeam.h.
|
protected |
Definition at line 203 of file ArenaTeam.h.
|
protected |
Definition at line 206 of file ArenaTeam.h.
|
protected |
Definition at line 204 of file ArenaTeam.h.
|
protected |
Definition at line 192 of file ArenaTeam.h.
|
protected |
Definition at line 194 of file ArenaTeam.h.
|
protected |
Definition at line 193 of file ArenaTeam.h.