summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_marine.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-14 21:19:33 +0000
committeryexo <yexo@openttd.org>2009-02-14 21:19:33 +0000
commit336abd66a2ba618df9388f3c5a06fdfd272a770e (patch)
tree3c693efffe2aca5f64a4619f635a2b5e1155bddf /src/ai/api/ai_marine.hpp
parent7d88077addf412c3d2c392c4b16d6adaec0d006e (diff)
downloadopenttd-336abd66a2ba618df9388f3c5a06fdfd272a770e.tar.xz
(svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a front tile instead of a bool is_vertical (frosch).
Diffstat (limited to 'src/ai/api/ai_marine.hpp')
-rw-r--r--src/ai/api/ai_marine.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ai/api/ai_marine.hpp b/src/ai/api/ai_marine.hpp
index 0ff066018..6b8223392 100644
--- a/src/ai/api/ai_marine.hpp
+++ b/src/ai/api/ai_marine.hpp
@@ -82,15 +82,16 @@ public:
/**
* Builds a water depot on tile.
* @param tile The tile where the water depot will be build.
- * @param vertical If true, depot will be vertical, else horizontal.
+ * @param front A tile on the same axis with 'tile' as the depot shall be oriented
* @pre AIMap::IsValidTile(tile).
+ * @pre AIMap::IsValidTile(front).
* @exception AIError::ERR_AREA_NOT_CLEAR
* @exception AIError::ERR_SITE_UNSUITABLE
* @exception AIMarine::ERR_MARINE_MUST_BE_BUILT_ON_WATER
* @return Whether the water depot has been/can be build or not.
* @note A WaterDepot is 1 tile in width, and 2 tiles in length.
*/
- static bool BuildWaterDepot(TileIndex tile, bool vertical);
+ static bool BuildWaterDepot(TileIndex tile, TileIndex front);
/**
* Builds a dock where tile is the tile still on land.