diff options
author | yexo <yexo@openttd.org> | 2009-03-15 22:41:57 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-15 22:41:57 +0000 |
commit | ce4744e1d6637d0dec3766c5a827b43859396e58 (patch) | |
tree | 9f32a6c0a0ae74a9f2ba9bdd8534a3dbfff3e054 /src/ai/ai_scanner.hpp | |
parent | dda23960960133b5edd01a286aa5d43864886117 (diff) | |
download | openttd-ce4744e1d6637d0dec3766c5a827b43859396e58.tar.xz |
(svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic classes ScriptScanner/ScriptFileInfo.
Diffstat (limited to 'src/ai/ai_scanner.hpp')
-rw-r--r-- | src/ai/ai_scanner.hpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/ai/ai_scanner.hpp b/src/ai/ai_scanner.hpp index dbbadb1e8..d2e98c319 100644 --- a/src/ai/ai_scanner.hpp +++ b/src/ai/ai_scanner.hpp @@ -5,10 +5,11 @@ #ifndef AI_SCANNER_HPP #define AI_SCANNER_HPP +#include "../script/script_scanner.hpp" #include "../core/string_compare_type.hpp" #include <map> -class AIScanner { +class AIScanner : public ScriptScanner { public: AIScanner(); ~AIScanner(); @@ -56,16 +57,6 @@ public: const AIInfoList *GetUniqueAIInfoList() { return &this->info_single_list; } /** - * Get the engine of the main squirrel handler (it indexes all available scripts). - */ - class Squirrel *GetEngine() { return this->engine; } - - /** - * Get the current main script the ScanDir is currently tracking. - */ - const char *GetMainScript() { return this->main_script; } - - /** * Rescan the AI dir for scripts. */ void RescanAIDir(); @@ -81,21 +72,10 @@ private: */ void ScanAIDir(); - /** - * Scan a dir for AIs. - * For non-library-scan, if an AI is found, AIInfo is created, and the AI - * is registered to the central system. - * For library-scan, if a library is found, AILibrary is created, and the - * library is registered to the central system. - */ - void ScanDir(const char *dirname, bool library_dir); - AIInfo *info_dummy; AIInfoList info_list; AIInfoList info_single_list; AILibraryList library_list; - class Squirrel *engine; - char main_script[1024]; }; #endif /* AI_SCANNER_HPP */ |