mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
17 lines
314 B
C++
17 lines
314 B
C++
#include "./player.hh"
|
|
|
|
#include "./role.hh"
|
|
|
|
#include <string>
|
|
|
|
Player::Player(uint32_t id, std::string username, Role role, player::Status status):
|
|
id(id),
|
|
username(username),
|
|
role(role),
|
|
status(status) {
|
|
}
|
|
|
|
bool Player::operator==(const Player &other) const {
|
|
return this->id == other.id;
|
|
}
|