Example #1
0
        private void DrawDiscardPile()
        {
            //TODO how to draw the discard pile as this exists within the dealer class?
            var discardPileVisitor = new DeckPileVisitor();

            _table.Accept(discardPileVisitor);
            var cards     = discardPileVisitor.Result();
            var converter = new PileCardDrawingConverter(GraphicsDevice, _spriteBatch);

            converter.Draw(cards.Reverse().ToList());
        }
Example #2
0
        private void DrawDeck()
        {
            //TODO how to draw the deck as this exists within the dealer class?
            //TODO Should be face down version of all cards in the deck
            var discardPileVisitor = new DiscardPileVisitor();

            _table.Accept(discardPileVisitor);
            var cards     = discardPileVisitor.Result();
            var converter = new PileCardDrawingConverter(GraphicsDevice, _spriteBatch);

            converter.Draw(cards.ToList());
        }