summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-04-02 17:35:20 +0000
committeryexo <yexo@openttd.org>2010-04-02 17:35:20 +0000
commit81657379392e34031d91496d7fba5e235c248501 (patch)
treeaa2b40f829513b5dde971fb3f5819a117d70ed9a /src/ai/ai_instance.hpp
parent1cab5539943e14a57497db6519f5eef4187f4ea0 (diff)
downloadopenttd-81657379392e34031d91496d7fba5e235c248501.tar.xz
(svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu)
Diffstat (limited to 'src/ai/ai_instance.hpp')
-rw-r--r--src/ai/ai_instance.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp
index d1b49e57b..f046aa86c 100644
--- a/src/ai/ai_instance.hpp
+++ b/src/ai/ai_instance.hpp
@@ -137,6 +137,13 @@ public:
*/
static void LoadEmpty();
+ /**
+ * Reduces the number of opcodes the AI have left to zero. Unless
+ * the AI is in a state where it cannot suspend it will be suspended
+ * for the reminder of the current tick. This function is safe to
+ * call from within a function called by the AI.
+ */
+ void Suspend();
private:
class AIController *controller;
class AIStorage *storage;