summaryrefslogtreecommitdiff
path: root/src/tilearea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tilearea.cpp')
-rw-r--r--src/tilearea.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tilearea.cpp b/src/tilearea.cpp
index 84ac7a90f..21271f94f 100644
--- a/src/tilearea.cpp
+++ b/src/tilearea.cpp
@@ -147,6 +147,24 @@ void OrthogonalTileArea::ClampToMap()
}
/**
+ * 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.
* @param end Second corner of the area.