Exemplo n.º 1
0
        public void PaintCards(Hand hand, bool show)
        {
            var initialPos = new Position
            {
                X = (((_gameBoardPos.X + (7 * hand.Cards.Count) / 2) + _gameBorder.Width) / 2) + 3,
                Y = (_gameBorder.Height - 6) / 2
            };

            for (int i = 0; i < hand.Cards.Count; i++)
            {
                _card.Draw(initialPos, hand.Cards[i], show);
                initialPos.X += 7;
            }
        }