testing-spring-2024/src/modules/player.cc
Kristofers Solo 7fd0c887ec refactor(enum): use enum class
refactor(enum): convert validation enum to enum class
2024-03-14 03:21:56 +02:00

17 lines
312 B
C++

#include "./player.hh"
#include "./role.hh"
#include <string>
Player::Player(uint32_t id, std::string username, Role role, PlayerStatus status):
id(id),
username(username),
role(role),
status(status) {
}
bool Player::operator==(const Player &other) const {
return this->id == other.id;
}