Added documentation.

This commit is contained in:
Felix Ableitner 2013-07-21 11:02:14 +02:00
parent fd141bda9c
commit 260bb46ac6
1 changed files with 2 additions and 0 deletions

View File

@ -259,6 +259,7 @@ Generator::getPlayerSpawn() const {
/**
* Finds the point array index closest to position which has a floor tile.
*
* @warn Will fail if no floor tile has been generated yet.
* @position Point to start search for a floor tile from.
*/
sf::Vector2i
@ -298,6 +299,7 @@ Generator::findClosestFloor(const sf::Vector2i& position) const {
open.insert(makePair(sf::Vector2i(current.x, current.y - 1)));
}
}
// No floor tile found in the entire world.
assert(false);
return sf::Vector2i();
}