summaryrefslogtreecommitdiff
path: root/src/waypoint_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:14:12 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:14:12 +0000
commit1a515e6344028854c855671c19f49d8f869eb18f (patch)
treee1bba97c1a8fd80f564729cc2d5fc2049110cb2a /src/waypoint_base.h
parentb27dd1dcd7375dae63724879eb0f56dd703e5312 (diff)
downloadopenttd-1a515e6344028854c855671c19f49d8f869eb18f.tar.xz
(svn r22405) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/waypoint_base.h')
-rw-r--r--src/waypoint_base.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/waypoint_base.h b/src/waypoint_base.h
index 88ba93320..7265384d9 100644
--- a/src/waypoint_base.h
+++ b/src/waypoint_base.h
@@ -14,9 +14,14 @@
#include "base_station_base.h"
+/** Representation of a waypoint. */
struct Waypoint : SpecializedStation<Waypoint, true> {
uint16 town_cn; ///< The N-1th waypoint for this town (consecutive number)
+ /**
+ * Create a waypoint at the given tile.
+ * @param tile The location of the waypoint.
+ */
Waypoint(TileIndex tile = INVALID_TILE) : SpecializedStation<Waypoint, true>(tile) { }
~Waypoint();
@@ -62,6 +67,10 @@ struct Waypoint : SpecializedStation<Waypoint, true> {
}
};
+/**
+ * Iterate over all waypoints.
+ * @param var The variable used for iteration.
+ */
#define FOR_ALL_WAYPOINTS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Waypoint, var)
#endif /* WAYPOINT_BASE_H */