(svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge that are already build.

This commit is contained in:
yexo
2009-03-28 12:04:38 +00:00
parent e02d31cd3a
commit 400208ee0a
5 changed files with 21 additions and 0 deletions

View File

@@ -51,6 +51,14 @@ public:
*/
static bool IsBridgeTile(TileIndex tile);
/**
* Get the BridgeID of a bridge at a given tile.
* @param tile The tile to get the BridgeID from.
* @pre IsBridgeTile(tile).
* @return The BridgeID from the bridge at tile 'tile'.
*/
static BridgeID GetBridgeID(TileIndex tile);
/**
* Get the name of a bridge.
* @param bridge_id The bridge to get the name of.