diff --git a/Level.cpp b/Level.cpp index dd83b3ba8643b651940b7359cae5cdacd1ed1d8e..04cf7c4586b63194905027692ccfe9621a1bb3ad 100644 --- a/Level.cpp +++ b/Level.cpp @@ -18,13 +18,10 @@ DynamicPixelBuffer Wall::constructWallBuffer(Orientation orientation, int length Wall::Wall(int length, int thickness, Position const &pos, Orientation orientation) : Entity(pos), - wallLength(length), - wallThickness(thickness), wallOrientation(orientation), - wallColor(_1), wallBuffer(constructWallBuffer(orientation, length, thickness)) { - this->wallBuffer.clear(this->wallColor); + this->wallBuffer.clear(_1); } PixelBuffer const& Wall::getSprite() @@ -32,11 +29,6 @@ PixelBuffer const& Wall::getSprite() return this->wallBuffer; } -void Wall::setWallColor(Color color) -{ - this->wallColor = color; -} - Orientation Wall::getOrientation() const { return this->wallOrientation; diff --git a/Level.hpp b/Level.hpp index af1b93d3d9a7ea3cd7738412fdaf94cb28339233..ce773657567d3ce10eb4008551f6990189b6f2a1 100644 --- a/Level.hpp +++ b/Level.hpp @@ -30,16 +30,10 @@ public: Wall(int length, int thickness, Position const &pos, Orientation orientation); DynamicPixelBuffer constructWallBuffer(Orientation orientation, int length, int thickness); PixelBuffer const& getSprite() override; - void setWallColor(Color color); Orientation getOrientation() const; private: - int wallLength; - int wallThickness; - Orientation wallOrientation; - Color wallColor; - DynamicPixelBuffer wallBuffer; };