1 #ifndef BATTLEFIELD_PLAYER_H
2 #define BATTLEFIELD_PLAYER_H
8 #include <battlefield/playerstats.h>
30 typedef std::vector<Player> Players;
31 typedef std::map<int, Player> RankPlayers;
54 int GetProfileId()
const {
return this->
_profileid; }
55 int GetUserId()
const {
return this->
_userid; }
56 std::string GetNick()
const {
return this->
_nick; }
57 std::string GetUniquenick()
const {
return this->
_uniquenick; }
58 std::string GetEmail()
const {
return this->
_email; }
59 std::string GetPassword()
const {
return this->
_password; }
60 std::string GetLastLogin()
const {
return this->
_last_login; }
61 std::string GetLastLoginIp()
const {
return this->
_last_login_ip; }
62 std::string GetCreatedAt()
const {
return this->
_created_at; }
63 std::vector<int> GetFriends()
const {
return this->
_friends; }
64 bool isVerified()
const {
return this->
_verified; }
65 bool isRestricted()
const {
return this->
_restricted; }
67 bool SetProfileId(
int profileid);
68 bool SetProfileId(
const std::string& str_profileid);
69 bool SetUserId(
int userid);
70 bool SetUserId(
const std::string& str_userid);
71 bool SetNick(
const std::string& nick);
72 bool SetUniquenick(
const std::string& uniquenick);
73 bool SetUniquenickWithoutClanTag(
const std::string& uniquenick);
74 bool SetEmail(
const std::string& email);
75 bool SetPassword(
const std::string& password);
76 bool SetMD5Password(
const std::string& password);
77 bool SetLastLogin(MYSQL_TIME last_login);
78 bool SetLastLoginIp(
const std::string& last_login_ip);
79 bool SetCreatedAt(MYSQL_TIME created_at);
80 bool SetVerified(
bool verified);
81 bool SetVerified(uint8_t verified);
82 bool SetRestricted(
bool restricted);
83 bool SetRestricted(uint8_t restricted);
85 bool AddFriend(
int profileid);
Contains player status information.
Represents a player with extended statistics.
std::string _last_login_ip
void useExample()
Performs an example operation using the Player class.
std::vector< int > _friends