diff options
author | yexo <yexo@openttd.org> | 2010-04-02 17:35:20 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-04-02 17:35:20 +0000 |
commit | 81657379392e34031d91496d7fba5e235c248501 (patch) | |
tree | aa2b40f829513b5dde971fb3f5819a117d70ed9a /src/ai/ai.hpp | |
parent | 1cab5539943e14a57497db6519f5eef4187f4ea0 (diff) | |
download | openttd-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.hpp')
-rw-r--r-- | src/ai/ai.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp index 495a030a1..ef0f6fc18 100644 --- a/src/ai/ai.hpp +++ b/src/ai/ai.hpp @@ -66,6 +66,15 @@ public: static void Stop(CompanyID company); /** + * Suspend an AI for the reminder of the current tick. If the AI is + * in a state when it cannot be suspended, it will continue to run + * until it can be suspended. + * @param company The company for which the AI should be suspended. + * @pre Company::IsValidAiID(company) + */ + static void Suspend(CompanyID company); + + /** * Kill any and all AIs we manage. */ static void KillAll(); |