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

void InitGlobals (void)
{
	int i;

	g_MainWindow = NULL;
	g_Quitting = false;
	g_Registry = NULL;

	for (i=0;i<MAXPERSON;i++)
	{
		g_Person[i].SetDestination (i+1,i+1);
		g_Person[i].Move ()->JoinFormation (g_Formation);
	}


	g_Graph.AddNode (new CRailNode(CPoint (15,60)),0);
	g_Graph.AddNode (new CRailNode(CPoint (10,10)),1);
	g_Graph.AddNode (new CRailNode(CPoint (20,10)),2);
	g_Graph.AddNode (new CRailNode(CPoint (10,20)),3);
	g_Graph.AddNode (new CRailNode(CPoint (20,20)),4);
	g_Graph.AddNode (new CRailNode(CPoint (30,40)),5);
	g_Graph.AddNode (new CRailNode(CPoint (10,50)),6);
	g_Graph.AddNode (new CRailNode(CPoint (20,50)),7);

	g_Graph.AddLink (1,3,5);
	g_Graph.AddLink (1,4,6);
	g_Graph.AddLink (2,4,10);
  g_Graph.AddLink (3,4,3);
  g_Graph.AddLink (3,6,4);
  g_Graph.AddLink (4,5,30);
  g_Graph.AddLink (4,6,1);
	g_Graph.AddLink (4,7,7);
  g_Graph.AddLink (6,0,5);
  g_Graph.AddLink (7,0,9);
}

void KillGlobals (void)
{
}