diff --git a/source/sprites/TileManager.cpp b/source/sprites/TileManager.cpp index ab7169f..058fcc1 100644 --- a/source/sprites/TileManager.cpp +++ b/source/sprites/TileManager.cpp @@ -137,13 +137,3 @@ TileManager::raycast(const sf::Vector2f& lineStart, } return true; } - -/** - * \copydoc sf::Drawable::draw - */ -void -TileManager::draw(sf::RenderTarget& target, sf::RenderStates states) const { - for (auto it = mTiles.begin(); it != mTiles.end(); it++) { - target.draw((**it), states); - } -} diff --git a/source/sprites/TileManager.h b/source/sprites/TileManager.h index ec1fade..00b97dd 100644 --- a/source/sprites/TileManager.h +++ b/source/sprites/TileManager.h @@ -12,7 +12,7 @@ class World; -class TileManager : public sf::Drawable { +class TileManager { public: enum class Type { FLOOR, @@ -37,9 +37,6 @@ public: private: class Tile; -private: - void draw(sf::RenderTarget& target, sf::RenderStates states) const; - private: World& mWorld; std::vector > mTiles;