示例#1
0
 private void DrawCells(Tableau tableau)
 {
     for (int i = 0; i < 4; i++)
     {
         if (tableau.Cells[i] != null)
         {
             if (tableau.Clicked[0] == 8 && tableau.Clicked[1] == i)
             {
                 surf.Blit(drawer.DrawCardInverted(tableau.Cells[i]),
                           new Point(LeftOfCells + (i * (CardWidth + 4)) + 2, TopOfCells + 2));
             }
             else
             {
                 surf.Blit(drawer.DrawCardFaceUp(tableau.Cells[i]),
                           new Point(LeftOfCells + (i * (CardWidth + 4)) + 2, TopOfCells + 2));
             }
         }
     }
 }
示例#2
0
 private void DrawInverted(Card card, int x, int y)
 {
     surf.Blit(drawer.DrawCardInverted(card), new Point(x, y));
 }