RequestPlayerDiscardRevealedCard() private method

private RequestPlayerDiscardRevealedCard ( GameState gameState ) : void
gameState GameState
return void
示例#1
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.RevealCardsFromDeck(1);
            Card revealedCard  = currentPlayer.CardsBeingRevealed.First();

            currentPlayer.RequestPlayerDiscardRevealedCard(gameState);
            currentPlayer.MoveRevealedCardToTopOfDeck();

            if (revealedCard.isAction)
            {
                currentPlayer.AddActions(1);
            }

            if (revealedCard.isTreasure)
            {
                currentPlayer.AddCoins(1);
            }

            if (revealedCard.isVictory)
            {
                currentPlayer.DrawOneCardIntoHand();
            }
        }
示例#2
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     currentPlayer.RevealCardsFromDeck(3);
     gameState.gameLog.PushScope();
     currentPlayer.RequestPlayerTrashRevealedCard(gameState);
     currentPlayer.RequestPlayerDiscardRevealedCard(gameState);
     currentPlayer.MoveRevealedCardToTopOfDeck();
     gameState.gameLog.PopScope();
 }
示例#3
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     currentPlayer.RevealCardsFromDeck(3, gameState);
     currentPlayer.RequestPlayerTrashRevealedCard(gameState, acceptableCard => true);
     currentPlayer.RequestPlayerDiscardRevealedCard(gameState);
     currentPlayer.MoveRevealedCardToTopOfDeck();
 }