BF2MC-Matchmaker
Public Member Functions | Private Attributes | List of all members
Battlefield::GameServerPlayer Class Reference

Represents a player in a game server. More...

#include <gameserver.h>

Public Member Functions

int GetId () const
 
std::string GetName () const
 
int16_t GetScore () const
 
std::string GetSkill () const
 
uint8_t GetPing () const
 
uint8_t GetTeam () const
 
uint16_t GetDeaths () const
 
int GetProfileId () const
 
bool SetId (int id)
 
bool SetName (const std::string &name)
 
bool SetScore (int16_t score)
 
bool SetScore (const std::string &str_score)
 
bool SetSkill (const std::string &skill)
 
bool SetPing (uint8_t ping)
 
bool SetPing (const std::string &str_ping)
 
bool SetTeam (uint8_t team)
 
bool SetTeam (const std::string &str_team)
 
bool SetDeaths (uint16_t deaths)
 
bool SetDeaths (const std::string &str_deaths)
 
bool SetProfileId (int profileid)
 
bool SetProfileId (const std::string &str_profileid)
 

Private Attributes

int _id = -1
 
std::string _name = ""
 
int16_t _score = 0
 
std::string _skill = ""
 
uint8_t _ping = 0
 
uint8_t _team = 0
 
uint16_t _deaths = 0
 
int _profileid = -1
 

Detailed Description

Represents a player in a game server.

Definition at line 384 of file gameserver.h.

Member Data Documentation

◆ _deaths

uint16_t Battlefield::GameServerPlayer::_deaths = 0
private

Number of deaths for the player.

Definition at line 393 of file gameserver.h.

◆ _id

int Battlefield::GameServerPlayer::_id = -1
private

Player ID.

Definition at line 387 of file gameserver.h.

◆ _name

std::string Battlefield::GameServerPlayer::_name = ""
private

Player name.

Definition at line 388 of file gameserver.h.

◆ _ping

uint8_t Battlefield::GameServerPlayer::_ping = 0
private

Player's ping.

Definition at line 391 of file gameserver.h.

◆ _profileid

int Battlefield::GameServerPlayer::_profileid = -1
private

Player's profile ID.

Definition at line 394 of file gameserver.h.

◆ _score

int16_t Battlefield::GameServerPlayer::_score = 0
private

Player's score.

Definition at line 389 of file gameserver.h.

◆ _skill

std::string Battlefield::GameServerPlayer::_skill = ""
private

Player's skill level.

Definition at line 390 of file gameserver.h.

◆ _team

uint8_t Battlefield::GameServerPlayer::_team = 0
private

Player's team number.

Definition at line 392 of file gameserver.h.


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