TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ArenaTeamMember Struct Reference

#include <ArenaTeam.h>

Public Member Functions

void ModifyPersonalRating (Player *player, int32 mod, uint32 type)
 
void ModifyMatchmakerRating (int32 mod, uint32 slot)
 

Public Attributes

ObjectGuid Guid
 
std::string Name
 
uint8 Class
 
uint16 WeekGames
 
uint16 WeekWins
 
uint16 SeasonGames
 
uint16 SeasonWins
 
uint16 PersonalRating
 
uint16 MatchMakerRating
 

Member Function Documentation

void ArenaTeamMember::ModifyMatchmakerRating ( int32  mod,
uint32  slot 
)
444 {
445  if (int32(MatchMakerRating) + mod < 0)
446  MatchMakerRating = 0;
447  else
448  MatchMakerRating += mod;
449 }
uint16 MatchMakerRating
Definition: ArenaTeam.h:94
int32_t int32
Definition: g3dmath.h:167
void ArenaTeamMember::ModifyPersonalRating ( Player player,
int32  mod,
uint32  type 
)
430 {
431  if (int32(PersonalRating) + mod < 0)
432  PersonalRating = 0;
433  else
434  PersonalRating += mod;
435 
436  if (player)
437  {
438  player->SetArenaTeamInfoField(ArenaTeam::GetSlotByType(type), ARENA_TEAM_PERSONAL_RATING, PersonalRating);
439  player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_PERSONAL_RATING, PersonalRating, type);
440  }
441 }
uint16 PersonalRating
Definition: ArenaTeam.h:93
static uint8 GetSlotByType(uint32 type)
Definition: ArenaTeam.cpp:458
int32_t int32
Definition: g3dmath.h:167

+ Here is the call graph for this function:

Member Data Documentation

uint8 ArenaTeamMember::Class
ObjectGuid ArenaTeamMember::Guid
uint16 ArenaTeamMember::MatchMakerRating
std::string ArenaTeamMember::Name
uint16 ArenaTeamMember::PersonalRating
uint16 ArenaTeamMember::SeasonGames
uint16 ArenaTeamMember::SeasonWins
uint16 ArenaTeamMember::WeekGames
uint16 ArenaTeamMember::WeekWins

The documentation for this struct was generated from the following files: