summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2012-02-12 17:29:58 +0000
committersmatz <smatz@openttd.org>2012-02-12 17:29:58 +0000
commitf79c388a1cd3a58385b92fa2a8310bdc750586a6 (patch)
tree5dea0c051676f8b81c96c5f3127ce520a9be3854 /src
parentc44d9fc36664415e878debe23b83431e3242f2e4 (diff)
downloadopenttd-f79c388a1cd3a58385b92fa2a8310bdc750586a6.tar.xz
(svn r23938) -Codechange: declare ScriptScanner::Initialize() and make it abstract, make the other overloaded Initialize() protected
Diffstat (limited to 'src')
-rw-r--r--src/script/script_scanner.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/script/script_scanner.hpp b/src/script/script_scanner.hpp
index e0788b605..1518dbe59 100644
--- a/src/script/script_scanner.hpp
+++ b/src/script/script_scanner.hpp
@@ -24,11 +24,7 @@ public:
ScriptScanner();
virtual ~ScriptScanner();
- /**
- * Initialize the scanner.
- * @param name The name of the scanner ("AIScanner", "GSScanner", ..).
- */
- virtual void Initialize(const char *name);
+ virtual void Initialize() = 0;
/**
* Get the engine of the main squirrel handler (it indexes all available scripts).
@@ -89,6 +85,12 @@ protected:
ScriptInfoList info_single_list; ///< The list of all unique script. The best script (highest version) is shown.
/**
+ * Initialize the scanner.
+ * @param name The name of the scanner ("AIScanner", "GSScanner", ..).
+ */
+ void Initialize(const char *name);
+
+ /**
* Get the script name how to store the script in memory.
*/
virtual void GetScriptName(ScriptInfo *info, char *name, int len) = 0;