Example #1
0
 /// <summary>
 /// Method draws <see cref="BlackjackGame.DECKS_COUNT"/> shoes with "closed" cards
 /// and remembers the coordniates of the lowest card (since we pop cards from each deck every time)
 /// </summary>
 public void DrawShoes()
 {
     for (int i = 0; i < BlackjackGame.DECKS_COUNT; i++)
     {
         int j = 0;
         for (; j < game.GetDeck(i).GetCardsNumber(); j += 7)
         {
             g.DrawImage(cardBack, shoesCoords[i].X + j / 5, shoesCoords[i].Y + j / 7, drawCardWidth, drawCardHeight);
         }
         shoesCoordsToDraw[i].X = shoesCoords[i].X + j / 5;
         shoesCoordsToDraw[i].Y = shoesCoords[i].Y + j / 7;
     }
 }