Removed TileManager::removeTile.
This commit is contained in:
parent
ef3553f74e
commit
bbdd298ebe
2 changed files with 0 additions and 12 deletions
|
@ -97,17 +97,6 @@ TileManager::insertTile(const TilePosition& position, Type type) {
|
|||
mWorld.insert(tile);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TileManager::removeTile(const TilePosition& position) {
|
||||
for (auto it = mTiles.begin(); it != mTiles.end(); it++) {
|
||||
if ((*it)->getTilePosition() == position) {
|
||||
mWorld.remove(*it);
|
||||
mTiles.erase(it);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Performs a raycast between two points to check if the path between them is
|
||||
* clear of walls.
|
||||
|
|
|
@ -31,7 +31,6 @@ public:
|
|||
explicit TileManager(World& world);
|
||||
|
||||
void insertTile(const TilePosition& position, Type type);
|
||||
void removeTile(const TilePosition& position);
|
||||
bool raycast(const sf::Vector2f& lineStart,
|
||||
const sf::Vector2f& lineEnd) const;
|
||||
|
||||
|
|
Reference in a new issue