summaryrefslogtreecommitdiff
path: root/src/pbs.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-02 16:14:23 +0000
committerrubidium <rubidium@openttd.org>2011-05-02 16:14:23 +0000
commit4d5dbf51707c42c24eeafdb65016b079c54adcf2 (patch)
tree0197dcc17f4a8411ecea2223f356019c902fe7b9 /src/pbs.h
parente9837ff1ec1326aec622366ae29ff1aa81581daf (diff)
downloadopenttd-4d5dbf51707c42c24eeafdb65016b079c54adcf2.tar.xz
(svn r22410) -Document: some more bits ;)
Diffstat (limited to 'src/pbs.h')
-rw-r--r--src/pbs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pbs.h b/src/pbs.h
index ec24477af..2e1fb8968 100644
--- a/src/pbs.h
+++ b/src/pbs.h
@@ -30,7 +30,17 @@ struct PBSTileInfo {
Trackdir trackdir; ///< The reserved trackdir on the tile.
bool okay; ///< True if tile is a safe waiting position, false otherwise.
+ /**
+ * Create an empty PBSTileInfo.
+ */
PBSTileInfo() : tile(INVALID_TILE), trackdir(INVALID_TRACKDIR), okay(false) {}
+
+ /**
+ * Create a PBSTileInfo with given tile, track direction and safe waiting position information.
+ * @param _t The tile where the path ends.
+ * @param _td The reserved track dir on the tile.
+ * @param _okay Whether the tile is a safe waiting point or not.
+ */
PBSTileInfo(TileIndex _t, Trackdir _td, bool _okay) : tile(_t), trackdir(_td), okay(_okay) {}
};