diff --git a/Trunk/MonoGameView/Algorithms/BFS.cs b/Trunk/MonoGameView/Algorithms/BFS.cs index 64adc2c..aab1757 100644 --- a/Trunk/MonoGameView/Algorithms/BFS.cs +++ b/Trunk/MonoGameView/Algorithms/BFS.cs @@ -142,7 +142,7 @@ namespace MonoGameView.Algorithms while (true) { var item = nodes.Dequeue(); - Thread.Sleep(10); + //Thread.Sleep(10); this.Collector.Coords = item.Item2.Coords; this.Collector.TrashContainers = item.Item2.TrashContainers; for (int x = 0; x < item.Item3.GetLength(0); x++) diff --git a/Trunk/MonoGameView/Algorithms/DFS.cs b/Trunk/MonoGameView/Algorithms/DFS.cs index b6496bb..7b143e1 100644 --- a/Trunk/MonoGameView/Algorithms/DFS.cs +++ b/Trunk/MonoGameView/Algorithms/DFS.cs @@ -127,7 +127,7 @@ namespace CzokoŚmieciarka.MonoGameView.Algorithms KeyValuePair, int> Search(ContentManager content, GarbageCollector collector, ICloneable[,] grid, int length) { - Thread.Sleep(10); + //Thread.Sleep(10); this.Collector.Coords = collector.Coords; this.Collector.TrashContainers = collector.TrashContainers; diff --git a/Trunk/MonoGameView/Game1.cs b/Trunk/MonoGameView/Game1.cs index 93446c4..6027088 100644 --- a/Trunk/MonoGameView/Game1.cs +++ b/Trunk/MonoGameView/Game1.cs @@ -45,8 +45,8 @@ namespace CzokoŚmieciarka.MonoGameView { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; - graphics.PreferredBackBufferWidth = 700; - graphics.PreferredBackBufferHeight = 500; + graphics.PreferredBackBufferWidth = 1400; + graphics.PreferredBackBufferHeight = 1000; } @@ -64,27 +64,27 @@ namespace CzokoŚmieciarka.MonoGameView // TODO: Add your initialization logic here timer = 0f; - mapLoader.Load(out size,out grid,"map1.xml"); + mapLoader.Load(out size,out grid,"map2.xml"); var containers = new List() { new GarbageCollectorContainer( new TypeOfGarbage(GarbageType.Glass,1), - 50, + 100000, new BasicGarbage(new TypeOfGarbage(GarbageType.Glass,1),0) ), new GarbageCollectorContainer( new TypeOfGarbage(GarbageType.Paper,1), - 10000, + 100000, new BasicGarbage(new TypeOfGarbage(GarbageType.Paper,1),0) ), new GarbageCollectorContainer( new TypeOfGarbage(GarbageType.Organic,1), - 10000, + 100000, new BasicGarbage(new TypeOfGarbage(GarbageType.Organic,1),0) ), new GarbageCollectorContainer( new TypeOfGarbage(GarbageType.PlasticMetal,1), - 10000, + 100000, new BasicGarbage(new TypeOfGarbage(GarbageType.PlasticMetal,1),0) ),