#pragma warning (disable:4786)
#include "ai test.hpp"

void InitSystem (void)
{
	InitWindows (true);

	try
	{
		srand (timeGetTime ());
		InitAI (true);
		InitWindows (true);

		InitAI (false);
		InitMap ();
		InitWindows (false);

		g_MainWindow = new CAITestWindow ();
		g_MainWindow->Create ("AI Window",514,514);
		ShowWindow (g_MainWindow->Window (),SW_SHOW);
	}
	catch (exception ex)
	{
		cerr << ex.what () << endl;
	}
}

void KillSystem (void)
{
	delete g_MainWindow;

//	KillDatabase ();
	KillWindows ();
}
