summaryrefslogtreecommitdiff
path: root/src/ai/ai.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-08-20 21:01:40 +0000
committeryexo <yexo@openttd.org>2012-08-20 21:01:40 +0000
commitfe31aa28c422f1fab32ab3b72d8369d539c8496e (patch)
tree78d7776bd3eaf5c9fb62ca7f3b7ea4e26824260b /src/ai/ai.hpp
parent2a89d0d13d9b7afb6a56b31715ba1b022070eef8 (diff)
downloadopenttd-fe31aa28c422f1fab32ab3b72d8369d539c8496e.tar.xz
(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the path instead of a boolean (LordAro)
Diffstat (limited to 'src/ai/ai.hpp')
-rw-r--r--src/ai/ai.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp
index 967210f4f..abe3f48ae 100644
--- a/src/ai/ai.hpp
+++ b/src/ai/ai.hpp
@@ -14,6 +14,7 @@
#include "../script/api/script_event_types.hpp"
#include "../core/string_compare_type.hpp"
+#include "ai_scanner.hpp"
#include <map>
/** A list that maps AI names to their AIInfo object. */
@@ -140,6 +141,12 @@ public:
* found it is removed from the config.
*/
static void Rescan();
+
+ /** Gets the ScriptScanner instance that is used to find AIs */
+ static AIScannerInfo *GetScannerInfo();
+ /** Gets the ScriptScanner instance that is used to find AI Libraries */
+ static AIScannerLibrary *GetScannerLibrary();
+
#if defined(ENABLE_NETWORK)
/** Wrapper function for AIScanner::HasAI */
static bool HasAI(const struct ContentInfo *ci, bool md5sum);