public void Draw(GameTime gameTime) { // Draw the stuff foreach (FourWayIntersection intersection in world.Intersections) { rtsRenderer.DrawIntersection(intersection); } foreach (Road road in world.Roads) { rtsRenderer.DrawRoad(road); } foreach (Vehicle car in world.Cars) { rtsRenderer.DrawCar(car); } // Print stats to console /* * Debug.WriteLine("World Stats:"); * Debug.WriteLine("Num active cars: {0}", world.Cars.Count); * Debug.WriteLine("Num roads: {0}", world.Roads.Count); * Debug.WriteLine("Num intersections: {0}", world.Intersections.Count); * Debug.WriteLine("FPS: {0}", 1 / (float)gameTime.ElapsedGameTime.TotalSeconds); */ }