(svn r16992) -Add [NoAI]: function to clear waypoint(s) in a certain rectangle on the map

This commit is contained in:
rubidium
2009-07-30 15:17:03 +00:00
parent de99f212dc
commit 4a1f6547c6
3 changed files with 49 additions and 30 deletions

View File

@@ -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).