refactor: format code
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
|
||||
#include "game/Team.h"
|
||||
|
||||
namespace td{
|
||||
namespace game{
|
||||
namespace td {
|
||||
namespace game {
|
||||
|
||||
class Player{
|
||||
class Player {
|
||||
private:
|
||||
game::TeamColor m_TeamColor = game::TeamColor::None;
|
||||
|
||||
@@ -19,21 +19,21 @@ private:
|
||||
|
||||
std::uint8_t m_GoldPerSecond = 5;
|
||||
public:
|
||||
Player(std::uint8_t id = 0) : m_ID(id){}
|
||||
Player(std::uint8_t id = 0) : m_ID(id) {}
|
||||
|
||||
const std::string& getName() const{return m_Name;}
|
||||
void setName(const std::string& name){m_Name = name;}
|
||||
const std::string& getName() const { return m_Name; }
|
||||
void setName(const std::string& name) { m_Name = name; }
|
||||
|
||||
game::TeamColor getTeamColor() const{return m_TeamColor;}
|
||||
void setTeamColor(game::TeamColor teamColor){m_TeamColor = teamColor;}
|
||||
game::TeamColor getTeamColor() const { return m_TeamColor; }
|
||||
void setTeamColor(game::TeamColor teamColor) { m_TeamColor = teamColor; }
|
||||
|
||||
std::uint8_t getGoldPerSecond() const{ return m_GoldPerSecond;}
|
||||
void setGoldPerSecond(std::uint8_t goldPerSecond){m_GoldPerSecond = goldPerSecond;}
|
||||
std::uint8_t getGoldPerSecond() const { return m_GoldPerSecond; }
|
||||
void setGoldPerSecond(std::uint8_t goldPerSecond) { m_GoldPerSecond = goldPerSecond; }
|
||||
|
||||
std::uint32_t getGold() const{ return m_Gold;}
|
||||
void setGold(std::uint32_t gold){m_Gold = gold;}
|
||||
std::uint32_t getGold() const { return m_Gold; }
|
||||
void setGold(std::uint32_t gold) { m_Gold = gold; }
|
||||
|
||||
std::uint8_t getID() const{return m_ID;}
|
||||
std::uint8_t getID() const { return m_ID; }
|
||||
};
|
||||
|
||||
} // namespace game
|
||||
|
||||
Reference in New Issue
Block a user