Esempio n. 1
0
 private void AddToBoard(Cloth cloth)
 {
     for (int x = 0; x < cloth.width; x++)
     {
         for (int y = 0; y < cloth.height; y++)
         {
             Board[cloth.xPos + x, cloth.yPos + y]++;
         }
     }
 }
Esempio n. 2
0
 private void CheckOverlaps(Cloth cloth)
 {
     for (int x = 0; x < cloth.width; x++)
     {
         for (int y = 0; y < cloth.height; y++)
         {
             if (Board[cloth.xPos + x, cloth.yPos + y] > 1)
             {
                 cloth.overlaps = true;
             }
         }
     }
 }