Beispiel #1
0
    public Board(IActiveCards active, IDrawPile draw, IDiscardPile discard, IHand hand)
    {
        if (hand == null)
        {
            throw new ArgumentNullException("hand");
        }
        if (draw == null)
        {
            throw new ArgumentNullException("draw");
        }
        if (active == null)
        {
            throw new ArgumentNullException("active");
        }
        if (discard == null)
        {
            throw new ArgumentNullException("discard");
        }

        this.hand        = hand;
        this.drawPile    = draw;
        this.activeCards = active;
        this.discardPile = discard;
    }
Beispiel #2
0
 void IDeckEvents <TElement> .Drew(IDrawPile <TElement> pile, TElement card)
 {
 }
Beispiel #3
0
 void IDeckEvents <TElement> .Drawing(IDrawPile <TElement> pile)
 {
 }