summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_bridge.hpp.sq
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-28 12:04:38 +0000
committeryexo <yexo@openttd.org>2009-03-28 12:04:38 +0000
commit400208ee0afd84f1e9ddf1ab851e34a87b3e98c0 (patch)
treed96ab887f0146fd83a81a513c794f40959849e14 /src/ai/api/ai_bridge.hpp.sq
parente02d31cd3abaf078131a82e7d0a0c46a5a759d24 (diff)
downloadopenttd-400208ee0afd84f1e9ddf1ab851e34a87b3e98c0.tar.xz
(svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge that are already build.
Diffstat (limited to 'src/ai/api/ai_bridge.hpp.sq')
-rw-r--r--src/ai/api/ai_bridge.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_bridge.hpp.sq b/src/ai/api/ai_bridge.hpp.sq
index 1a4117457..eddd4f5da 100644
--- a/src/ai/api/ai_bridge.hpp.sq
+++ b/src/ai/api/ai_bridge.hpp.sq
@@ -36,6 +36,7 @@ void SQAIBridge_Register(Squirrel *engine) {
SQAIBridge.DefSQStaticMethod(engine, &AIBridge::IsValidBridge, "IsValidBridge", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &AIBridge::IsBridgeTile, "IsBridgeTile", 2, ".i");
+ SQAIBridge.DefSQStaticMethod(engine, &AIBridge::GetBridgeID, "GetBridgeID", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &AIBridge::GetName, "GetName", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &AIBridge::GetMaxSpeed, "GetMaxSpeed", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &AIBridge::GetPrice, "GetPrice", 3, ".ii");