From e37149a1def6a0e63dda8e0964abf1b82316761a Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:21:52 +0000 Subject: (svn r23362) -Codechange: refactor AIScanner, splitting it in AIScannerInfo and AIScannerLibrary --- src/ai/ai_info.hpp | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/ai/ai_info.hpp') diff --git a/src/ai/ai_info.hpp b/src/ai/ai_info.hpp index f3833fdac..82ca6f925 100644 --- a/src/ai/ai_info.hpp +++ b/src/ai/ai_info.hpp @@ -49,24 +49,17 @@ extern AIConfigItem _start_date_config; typedef std::list AIConfigItemList; ///< List of AIConfig items. -/** Base class that holds some basic information about AIs and AI libraries. */ -class AIFileInfo : public ScriptFileInfo { -public: - /** - * Process the creation of a FileInfo object. - */ - static SQInteger Constructor(HSQUIRRELVM vm, AIFileInfo *info); - -protected: - class AIScanner *base; ///< AIScanner object that was used to scan this AI (library) info. -}; - /** All static information from an AI like name, version, etc. */ -class AIInfo : public AIFileInfo { +class AIInfo : public ScriptInfo { public: AIInfo(); ~AIInfo(); + /** + * Register the functions of this class. + */ + static void RegisterAPI(Squirrel *engine); + /** * Create an AI, using this AIInfo as start-template. */ @@ -130,11 +123,16 @@ private: }; /** All static information from an AI library like name, version, etc. */ -class AILibrary : public AIFileInfo { +class AILibrary : public ScriptInfo { public: - AILibrary() : AIFileInfo(), category(NULL) {}; + AILibrary() : ScriptInfo(), category(NULL) {}; ~AILibrary(); + /** + * Register the functions of this class. + */ + static void RegisterAPI(Squirrel *engine); + /** * Create an AI, using this AIInfo as start-template. */ -- cgit v1.2.3-54-g00ecf