Dodano przejście między domkami

This commit is contained in:
Michał Dulski 2019-04-08 15:51:08 +02:00
parent cc9ccd26ba
commit c2f5acee58

View File

@ -80,12 +80,14 @@ namespace CzokoŚmieciarka.WPFv2
} }
IEnumerable<TrashCan> trashCans = new List<TrashCan>(); IEnumerable<TrashCan> trashCans = new List<TrashCan>();
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans); if(i != 6)
Objects[i, i] = house; {
Grid.SetRow(Objects[i, i].Image, i); WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
Grid.SetColumn(Objects[i, i].Image, i); Objects[i, i] = house;
Board.Children.Add(Objects[i, i].Image); Grid.SetRow(Objects[i, i].Image, i);
Grid.SetColumn(Objects[i, i].Image, i);
Board.Children.Add(Objects[i, i].Image);
}
} }
Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7)); Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7));
Grid.SetColumn(Objects[2, 7].Image, 2); Grid.SetColumn(Objects[2, 7].Image, 2);