Codechange: Replace TILE_AREA_LOOP with range-based for loops
This commit is contained in:
@@ -146,6 +146,24 @@ void OrthogonalTileArea::ClampToMap()
|
||||
this->h = std::min<int>(this->h, MapSizeY() - TileY(this->tile));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator to the beginning of the tile area.
|
||||
* @return The OrthogonalTileIterator.
|
||||
*/
|
||||
OrthogonalTileIterator OrthogonalTileArea::begin() const
|
||||
{
|
||||
return OrthogonalTileIterator(*this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator to the end of the tile area.
|
||||
* @return The OrthogonalTileIterator.
|
||||
*/
|
||||
OrthogonalTileIterator OrthogonalTileArea::end() const
|
||||
{
|
||||
return OrthogonalTileIterator(OrthogonalTileArea());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a diagonal tile area from two corners.
|
||||
* @param start First corner of the area.
|
||||
|
Reference in New Issue
Block a user