Removed unused function.
This commit is contained in:
parent
a5b01bf3c5
commit
454156eabe
2 changed files with 1 additions and 14 deletions
|
@ -137,13 +137,3 @@ TileManager::raycast(const sf::Vector2f& lineStart,
|
||||||
}
|
}
|
||||||
return true;
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
class World;
|
class World;
|
||||||
|
|
||||||
class TileManager : public sf::Drawable {
|
class TileManager {
|
||||||
public:
|
public:
|
||||||
enum class Type {
|
enum class Type {
|
||||||
FLOOR,
|
FLOOR,
|
||||||
|
@ -37,9 +37,6 @@ public:
|
||||||
private:
|
private:
|
||||||
class Tile;
|
class Tile;
|
||||||
|
|
||||||
private:
|
|
||||||
void draw(sf::RenderTarget& target, sf::RenderStates states) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
World& mWorld;
|
World& mWorld;
|
||||||
std::vector<std::shared_ptr<Tile> > mTiles;
|
std::vector<std::shared_ptr<Tile> > mTiles;
|
||||||
|
|
Reference in a new issue