fix warnings + cland-tidy
This commit is contained in:
@@ -17,7 +17,7 @@ class Spawn : public utils::shape::Rectangle {
|
||||
private:
|
||||
Direction m_Direction;
|
||||
public:
|
||||
Spawn() {
|
||||
Spawn() : m_Direction(Direction::PositiveX) {
|
||||
SetWidth(5);
|
||||
SetHeight(5);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class World {
|
||||
return m_CurrentState.m_Mobs;
|
||||
}
|
||||
|
||||
const Color* GetTileColor(TilePtr tile) const;
|
||||
const Color* GetTileColor(const TilePtr& tile) const;
|
||||
|
||||
Team& GetRedTeam() {
|
||||
return m_CurrentState.m_Teams[static_cast<std::uint8_t>(TeamColor::Red)];
|
||||
|
||||
@@ -39,6 +39,7 @@ static constexpr Color BLUE{0, 0, 255};
|
||||
|
||||
struct Tile {
|
||||
virtual TileType GetType() const = 0;
|
||||
virtual ~Tile() = default;
|
||||
};
|
||||
|
||||
struct TowerTile : Tile {
|
||||
@@ -118,4 +119,4 @@ struct hash<td::game::ChunkCoord> {
|
||||
return std::hash<std::int16_t>()(key.x << 16 | key.y);
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
} // namespace std
|
||||
|
||||
Reference in New Issue
Block a user