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]++; } } }
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; } } } }