feat: add basic towers rendering

This commit is contained in:
2021-09-26 18:19:00 +02:00
parent 2ece5bc9b5
commit fe7cfdec72
22 changed files with 230 additions and 58 deletions

View File

@@ -10,7 +10,7 @@ namespace game {
class Player {
private:
game::TeamColor m_TeamColor = game::TeamColor::None;
game::TeamColor m_TeamColor;
std::uint32_t m_Gold = 0;
std::int32_t m_EXP = 0;
@@ -19,7 +19,7 @@ private:
std::uint8_t m_GoldPerSecond = 5;
public:
Player(std::uint8_t id = 0) : m_ID(id) {}
Player(std::uint8_t id = 0) : m_TeamColor(game::TeamColor::None), m_ID(id) {}
const std::string& getName() const { return m_Name; }
void setName(const std::string& name) { m_Name = name; }