summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_controller.hpp.sq
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 23:20:14 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 23:20:14 +0000
commit65d0d19b1616e5867afdf9d9f1c68972d2c3f2b0 (patch)
tree75d5607cc3393395003137b92c580a4bf8dae3f2 /src/ai/api/ai_controller.hpp.sq
parent02913f40b0ab1a7771e96e4c6af4ef15b6953cc7 (diff)
downloadopenttd-65d0d19b1616e5867afdf9d9f1c68972d2c3f2b0.tar.xz
(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick
Diffstat (limited to 'src/ai/api/ai_controller.hpp.sq')
-rw-r--r--src/ai/api/ai_controller.hpp.sq13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq
index ec8ddca83..fdfb47788 100644
--- a/src/ai/api/ai_controller.hpp.sq
+++ b/src/ai/api/ai_controller.hpp.sq
@@ -13,11 +13,12 @@ void SQAIController_Register(Squirrel *engine)
{
DefSQClass <AIController> SQAIController("AIController");
SQAIController.PreRegister(engine);
- SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");
- SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, ".i");
- SQAIController.DefSQStaticMethod(engine, &AIController::Sleep, "Sleep", 2, ".i");
- SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting, "GetSetting", 2, ".s");
- SQAIController.DefSQStaticMethod(engine, &AIController::GetVersion, "GetVersion", 1, ".");
- SQAIController.DefSQStaticMethod(engine, &AIController::Print, "Print", 3, ".bs");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetOpsTillSuspend, "GetOpsTillSuspend", 1, ".");
+ SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, ".i");
+ SQAIController.DefSQStaticMethod(engine, &AIController::Sleep, "Sleep", 2, ".i");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting, "GetSetting", 2, ".s");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetVersion, "GetVersion", 1, ".");
+ SQAIController.DefSQStaticMethod(engine, &AIController::Print, "Print", 3, ".bs");
SQAIController.PostRegister(engine);
}