public TestGame() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; this.graphics.PreferredBackBufferWidth = 640; this.graphics.PreferredBackBufferHeight = 480; // Game should run as fast as possible. IsFixedTimeStep = true; graphics.SynchronizeWithVerticalRetrace = true; aiEngine = new AIEngine((Game)this); this.Components.Add(aiEngine); AIWorld newWorld = new DrawableAIWorld(); aiEngine.AddWorld(ref newWorld); pathFinder = new AIPathfinder(); sEngine = new SEngine((Game)this, graphics); //this.Components.Add(sEngine); }