feat: add castle tooltip

This commit is contained in:
2021-12-12 13:32:39 +01:00
parent 4611a198c9
commit 24617c539f
11 changed files with 133 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ typedef std::map<std::uint8_t, Player> PlayerList;
class Game {
protected:
World* m_World;
std::array<Team, 2> m_Teams = { Team{TeamColor::Red}, Team{TeamColor::Blue} };
TeamList m_Teams = { Team{TeamColor::Red}, Team{TeamColor::Blue} };
GameState m_GameState = GameState::Lobby;
PlayerList m_Players;
public:
@@ -49,6 +49,8 @@ public:
const Player* getPlayerById(PlayerID id) const;
Player* getPlayerById(PlayerID id);
const TeamList& getTeams() const { return m_Teams; }
};
} // namespace game