RequestPlayerInspectTopOfDeckForDiscard() private method

private RequestPlayerInspectTopOfDeckForDiscard ( PlayerState decidingPlayer, GameState gameState, bool shouldReveal = true ) : void
decidingPlayer PlayerState
gameState GameState
shouldReveal bool
return void
コード例 #1
0
ファイル: BaseSet.cs プロジェクト: NathanTeeuwen/Dominulator
 public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState)
 {
     otherPlayer.RequestPlayerInspectTopOfDeckForDiscard(currentPlayer, gameState);
 }
コード例 #2
0
ファイル: Alchemy.cs プロジェクト: NathanTeeuwen/Dominulator
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     currentPlayer.RequestPlayerInspectTopOfDeckForDiscard(currentPlayer, gameState);
     while (true)
     {
         Card card = currentPlayer.DrawAndRevealOneCardFromDeck(gameState);
         if (card == null || !card.isAction)
             break;
     }
     currentPlayer.MoveAllRevealedCardsToHand();
 }
コード例 #3
0
ファイル: BaseSet.cs プロジェクト: NathanTeeuwen/Dominulator
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     currentPlayer.RequestPlayerInspectTopOfDeckForDiscard(currentPlayer, gameState);
 }
コード例 #4
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.GainCardFromSupply(Silver.card, gameState);

            // look at the top card of the deck and discard or put it back
            currentPlayer.RequestPlayerInspectTopOfDeckForDiscard(currentPlayer, gameState, shouldReveal: false);
            currentPlayer.DrawUntilCountInHand(5, gameState);

            currentPlayer.RequestPlayerTrashCardFromHand(gameState, acceptableCard => !acceptableCard.isTreasure, isOptional: true);
        }