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>();
if(i != 6)
{
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans); WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
Objects[i, i] = house; Objects[i, i] = house;
Grid.SetRow(Objects[i, i].Image, i); Grid.SetRow(Objects[i, i].Image, i);
Grid.SetColumn(Objects[i, i].Image, i); Grid.SetColumn(Objects[i, i].Image, i);
Board.Children.Add(Objects[i, i].Image); 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);