diff options
author | truebrain <truebrain@openttd.org> | 2009-01-15 18:15:12 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-15 18:15:12 +0000 |
commit | ef62688522218c50bed25bd8383e82365d91cdb0 (patch) | |
tree | fe14c05c0a3bd9c3c4546610ab53a830dc6bab9b /src/ai/ai_info.hpp | |
parent | a039ec0d21008668b79509d097b9a6f59ea64977 (diff) | |
download | openttd-ef62688522218c50bed25bd8383e82365d91cdb0.tar.xz |
(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
Diffstat (limited to 'src/ai/ai_info.hpp')
-rw-r--r-- | src/ai/ai_info.hpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ai/ai_info.hpp b/src/ai/ai_info.hpp index 9708eb545..6a609d787 100644 --- a/src/ai/ai_info.hpp +++ b/src/ai/ai_info.hpp @@ -84,14 +84,9 @@ public: bool CanLoadFromVersion(int version); /** - * Get the name of the dir this AI is in. + * Get the filename of the main.nut script. */ - const char *GetDirName(); - - /** - * Get the complete script name of this AI. - */ - const char *GetScriptName(); + const char *GetMainScript(); /** * Check if a given method exists. @@ -106,8 +101,7 @@ public: private: class Squirrel *engine; HSQOBJECT *SQ_instance; - char *script_name; - char *dir_name; + char *main_script; class AIScanner *base; const char *author; const char *name; @@ -156,6 +150,7 @@ private: class AILibrary : public AIFileInfo { public: AILibrary() : AIFileInfo(), category(NULL) {}; + ~AILibrary(); /** * Create an AI, using this AIInfo as start-template. |