29 User(
const std::string &
name =
"Player");
Represents a player in the game with name and score tracking.
Definition user.hpp:23
int get_user_score() const
Gets the current score of the user.
Definition user.cpp:44
std::string name
Definition user.hpp:80
const std::string & get_user_name() const
Gets the user's name.
Definition user.cpp:54
int score
Definition user.hpp:81
int get_round() const
Gets the current round number.
Definition user.hpp:77
User(const std::string &name="Player")
Constructor for User class.
Definition user.cpp:17
void set_round(int _round)
Sets the current round number.
Definition user.hpp:71
void set_user_name(const std::string &name)
Sets the user's name.
Definition user.cpp:64
int round
Definition user.hpp:82
void set_user_score(int _score)
Sets the user's score to a specific value.
Definition user.hpp:53
void increment_score()
Increments the user's score by 1.
Definition user.cpp:24
void reset_score()
Resets the user's score to 0.
Definition user.cpp:34