summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-19 15:39:12 +0000
committerrubidium <rubidium@openttd.org>2008-10-19 15:39:12 +0000
commitd832626bb9f8009c636c3ebef0620ead499ef8d3 (patch)
tree2a5381abe13a96fd46089d41193bd7b605164edc /src/station.cpp
parent15eb140d28a8fc131dedc595c7685562917130a4 (diff)
downloadopenttd-d832626bb9f8009c636c3ebef0620ead499ef8d3.tar.xz
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 97ad6c712..128dbe9b7 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -321,6 +321,15 @@ bool StationRect::BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mo
BeforeAddTile(tile, mode) && BeforeAddTile(TILE_ADDXY(tile, w - 1, h - 1), mode);
}
+/**
+ * Check whether station tiles of the given station id exist in the given rectangle
+ * @param st_id Station ID to look for in the rectangle
+ * @param left_a Minimal tile X edge of the rectangle
+ * @param top_a Minimal tile Y edge of the rectangle
+ * @param right_a Maximal tile X edge of the rectangle (inclusive)
+ * @param bottom_a Maximal tile Y edge of the rectangle (inclusive)
+ * @return \c true if a station tile with the given \a st_id exists in the rectangle, \c false otherwise
+ */
/*static*/ bool StationRect::ScanForStationTiles(StationID st_id, int left_a, int top_a, int right_a, int bottom_a)
{
TileIndex top_left = TileXY(left_a, top_a);