refactor: remove useless namespace

This commit is contained in:
2022-04-27 18:38:10 +02:00
parent 7509cc1bf2
commit 87e4e65843

View File

@@ -11,7 +11,7 @@ namespace game {
class Player { class Player {
private: private:
game::TeamColor m_TeamColor; TeamColor m_TeamColor;
PlayerUpgrades m_Upgrades; PlayerUpgrades m_Upgrades;
std::uint32_t m_Gold; std::uint32_t m_Gold;
@@ -21,13 +21,13 @@ private:
public: public:
Player(std::uint8_t id = 0) : m_TeamColor(game::TeamColor::None), m_Gold(0), m_Exp(0), m_ID(id) {} Player(std::uint8_t id = 0) : m_TeamColor(TeamColor::None), m_Gold(0), m_Exp(0), m_ID(id) {}
const std::string& GetName() const { return m_Name; } const std::string& GetName() const { return m_Name; }
void SetName(const std::string& name) { m_Name = name; } void SetName(const std::string& name) { m_Name = name; }
game::TeamColor GetTeamColor() const { return m_TeamColor; } TeamColor GetTeamColor() const { return m_TeamColor; }
void SetTeamColor(game::TeamColor teamColor) { m_TeamColor = teamColor; } void SetTeamColor(TeamColor teamColor) { m_TeamColor = teamColor; }
std::uint32_t GetGold() const { return m_Gold; } std::uint32_t GetGold() const { return m_Gold; }
void SetGold(std::uint32_t gold) { m_Gold = gold; } void SetGold(std::uint32_t gold) { m_Gold = gold; }