Dominion.PlayerState.RequestPlayerTopDeckRevealedCardsInAnyOrder C# (CSharp) Method

RequestPlayerTopDeckRevealedCardsInAnyOrder() private method

private RequestPlayerTopDeckRevealedCardsInAnyOrder ( GameState gameState ) : void
gameState GameState
return void
        internal void RequestPlayerTopDeckRevealedCardsInAnyOrder(GameState gameState)
        {
            while (this.cardsBeingRevealed.Any)
            {
                this.RequestPlayerTopDeckCardFromRevealed(gameState, isOptional: false);
            }
        }

Usage Example

Beispiel #1
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.LookAtCardsFromDeck(5);
            PlayerActionChoice choice = currentPlayer.RequestPlayerChooseBetween(gameState,
                acceptableChoice => acceptableChoice == PlayerActionChoice.Discard ||
                                    acceptableChoice == PlayerActionChoice.TopDeck);

            if (choice == PlayerActionChoice.TopDeck)
            {
                currentPlayer.RequestPlayerTopDeckRevealedCardsInAnyOrder(gameState);
            }
            else if (choice == PlayerActionChoice.Discard)
            {
                currentPlayer.MoveRevealedCardsToDiscard(gameState);
            }
        }
All Usage Examples Of Dominion.PlayerState::RequestPlayerTopDeckRevealedCardsInAnyOrder
PlayerState