Beispiel #1
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());
        }
Beispiel #2
0
 public void Accept(DiscardPileVisitor visitor)
 {
     _dealer.Accept(visitor);
 }
 public void SetUp()
 {
     _discardPileVisitor = new DiscardPileVisitor();
 }