refactor: format code

This commit is contained in:
2021-09-19 17:33:16 +02:00
parent 52a143769e
commit 0856ca47ca
71 changed files with 1102 additions and 1110 deletions

View File

@@ -11,23 +11,23 @@ namespace game {
class Player;
enum class TeamColor : std::int8_t{
enum class TeamColor : std::int8_t {
None = -1,
Red,
Blue
};
struct Spawn{
struct Spawn {
Direction direction;
std::int32_t x, y;
};
struct TeamCastle{
struct TeamCastle {
std::int32_t x, y;
std::uint16_t life = 1000;
};
class Team{
class Team {
private:
std::vector<Player*> m_Players;
TeamColor m_Color;
@@ -41,11 +41,11 @@ public:
TeamColor getColor() const;
const Spawn& getSpawn() const {return m_Spawn;}
Spawn& getSpawn() {return m_Spawn;}
const Spawn& getSpawn() const { return m_Spawn; }
Spawn& getSpawn() { return m_Spawn; }
const TeamCastle& getCastle() const {return m_TeamCastle;}
TeamCastle& getCastle() {return m_TeamCastle;}
const TeamCastle& getCastle() const { return m_TeamCastle; }
TeamCastle& getCastle() { return m_TeamCastle; }
std::uint8_t getPlayerCount() const;
};