diff options
author | rubidium <rubidium@openttd.org> | 2009-07-30 15:17:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-30 15:17:03 +0000 |
commit | 4a1f6547c678331f5e16b0c06c1e84eaa7d50db9 (patch) | |
tree | 5ca6c956a0f2244dbf8c7d4f65c4db598306517b /src/ai/api/ai_rail.hpp | |
parent | de99f212dc5c9829ba031b6c66f2ef88a1a29666 (diff) | |
download | openttd-4a1f6547c678331f5e16b0c06c1e84eaa7d50db9.tar.xz |
(svn r16992) -Add [NoAI]: function to clear waypoint(s) in a certain rectangle on the map
Diffstat (limited to 'src/ai/api/ai_rail.hpp')
-rw-r--r-- | src/ai/api/ai_rail.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ai/api/ai_rail.hpp b/src/ai/api/ai_rail.hpp index a16c27e1e..e17a5d52c 100644 --- a/src/ai/api/ai_rail.hpp +++ b/src/ai/api/ai_rail.hpp @@ -282,7 +282,17 @@ public: static bool RemoveRailWaypoint(TileIndex tile); /** - * Remove a rectangle of platform pieces from a rail station. + * Remove all rail waypoint pieces within a rectangle on the map. + * @param tile One corner of the rectangle to clear. + * @param tile2 The oppposite corner. + * @pre IsValidTile(tile). + * @pre IsValidTile(tile2). + * @return Whether at least one tile has been/can be cleared or not. + */ + static bool RemoveRailWaypointTileRect(TileIndex tile, TileIndex tile2); + + /** + * Remove all rail station platform pieces within a rectangle on the map. * @param tile One corner of the rectangle to clear. * @param tile2 The oppposite corner. * @pre IsValidTile(tile). |