Dominion.PlayerState.MoveAllRevealedCardsToHand C# (CSharp) Method

MoveAllRevealedCardsToHand() private method

private MoveAllRevealedCardsToHand ( ) : void
return void
        internal void MoveAllRevealedCardsToHand()
        {
            foreach (var card in this.cardsBeingRevealed)
                this.gameLog.DrewCardIntoHand(this, card);
            this.hand.MoveAllCardsFrom(this.cardsBeingRevealed);
        }

Usage Example

Beispiel #1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     currentPlayer.RevealCardsFromDeck(5, gameState);
     Card cardType = gameState.players.PlayerLeft.actions.BanCardToDrawnIntoHandFromRevealedCards(gameState);
     if (!currentPlayer.cardsBeingRevealed.HasCard(cardType))
     {
         throw new Exception("Must ban a card currently being revealed");
     }
     currentPlayer.MoveRevealedCardToDiscard(cardType, gameState);
     currentPlayer.MoveAllRevealedCardsToHand();
 }
All Usage Examples Of Dominion.PlayerState::MoveAllRevealedCardsToHand
PlayerState