2011-12-13 21:23:17 +00:00
|
|
|
#include "StdInc.h"
|
|
|
|
|
#include "../../lib/AI_Base.h"
|
2008-11-25 18:51:44 +00:00
|
|
|
#include "CGeniusAI.h"
|
|
|
|
|
|
2009-10-22 22:04:42 +00:00
|
|
|
using namespace geniusai;
|
2008-11-25 18:51:44 +00:00
|
|
|
|
|
|
|
|
const char *g_cszAiName = "Genius 1.0";
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT int GetGlobalAiVersion()
|
2008-11-25 18:51:44 +00:00
|
|
|
{
|
|
|
|
|
return AI_INTERFACE_VER;
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT void GetAiName(char* name)
|
2008-11-25 18:51:44 +00:00
|
|
|
{
|
|
|
|
|
strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT char* GetAiNameS()
|
2008-11-25 18:51:44 +00:00
|
|
|
{
|
2009-05-10 08:15:30 +00:00
|
|
|
// need to be defined
|
|
|
|
|
return NULL;
|
2008-11-25 18:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT CGlobalAI* GetNewAI()
|
2008-11-25 18:51:44 +00:00
|
|
|
{
|
|
|
|
|
return new CGeniusAI();
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT void ReleaseAI(CGlobalAI* i)
|
2008-11-25 18:51:44 +00:00
|
|
|
{
|
|
|
|
|
delete (CGeniusAI*)i;
|
2011-02-23 03:57:45 +00:00
|
|
|
}
|
|
|
|
|
|
2011-12-13 21:23:17 +00:00
|
|
|
extern "C" DLL_EXPORT CBattleGameInterface* GetNewBattleAI()
|
2011-02-23 03:57:45 +00:00
|
|
|
{
|
|
|
|
|
return new CGeniusAI();
|
2008-11-25 18:51:44 +00:00
|
|
|
}
|