OregonCore  revision fb2a440-git
Your Favourite TBC server
ArenaTeamMember Struct Reference

#include <ArenaTeam.h>

Public Member Functions

void ModifyPersonalRating (Player *plr, int32 mod, uint32 slot)
 

Public Attributes

uint64 guid
 
std::string name
 
uint8 Class
 
uint32 games_week
 
uint32 wins_week
 
uint32 games_season
 
uint32 wins_season
 
uint32 personal_rating
 

Detailed Description

Definition at line 87 of file ArenaTeam.h.

Member Function Documentation

void ArenaTeamMember::ModifyPersonalRating ( Player plr,
int32  mod,
uint32  slot 
)

Definition at line 23 of file ArenaTeam.cpp.

References ARENA_TEAM_PERSONAL_RATING, personal_rating, and Player::SetArenaTeamInfoField().

24 {
25  if (int32(personal_rating) + mod < 0)
26  personal_rating = 0;
27  else
28  personal_rating += mod;
29  if (plr)
31 }
void SetArenaTeamInfoField(uint8 slot, ArenaTeamInfoType type, uint32 value)
Definition: Player.h:1844
ACE_INT32 int32
Definition: Define.h:67
uint32 personal_rating
Definition: ArenaTeam.h:96

Member Data Documentation

uint8 ArenaTeamMember::Class

Definition at line 91 of file ArenaTeam.h.

Referenced by ArenaTeam::AddMember(), and ArenaTeam::LoadMembersFromDB().

uint32 ArenaTeamMember::games_season
uint32 ArenaTeamMember::games_week

Definition at line 92 of file ArenaTeam.h.

Referenced by ArenaTeam::AddMember(), and ArenaTeam::LoadMembersFromDB().

std::string ArenaTeamMember::name

Definition at line 90 of file ArenaTeam.h.

Referenced by ArenaTeam::AddMember(), and ArenaTeam::LoadMembersFromDB().

uint32 ArenaTeamMember::personal_rating
uint32 ArenaTeamMember::wins_season

Definition at line 95 of file ArenaTeam.h.

Referenced by ArenaTeam::AddMember(), and ArenaTeam::LoadMembersFromDB().

uint32 ArenaTeamMember::wins_week

Definition at line 93 of file ArenaTeam.h.

Referenced by ArenaTeam::AddMember(), and ArenaTeam::LoadMembersFromDB().


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