private void DrawTricks(PlayState playState) { for (int i = 0; i < playState.Trick.Count; i++) { int x = 0, y = 0; int temp = (playState.Leader + i) % 4; switch (temp) { case 0: x = 390; y = 260; break; case 1: x = 350; y = 220; break; case 2: x = 395; y = 200; break; case 3: x = 430; y = 240; break; } surf.Blit(drawer.DrawCardFaceUp(playState.Trick[i]), new Point(x, y)); } }
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)); } } } }