RevealAndReturnCardToHand() public method

public RevealAndReturnCardToHand ( Dominion.Card card, GameState gameState ) : void
card Dominion.Card
gameState GameState
return void
Example #1
0
 public override bool DoReactionToAttackWhileInHand(PlayerState currentPlayer, GameState gameState, out bool cancelsAttack)
 {
     if (currentPlayer.actions.ShouldRevealCardFromHand(gameState, this))
     {
         currentPlayer.RevealAndReturnCardToHand(this, gameState);
         cancelsAttack = true;
         return true;
     }
     else
     {
         cancelsAttack = false;
         return false;
     }
 }
Example #2
0
        public new DeckPlacement DoSpecializedActionOnGainWhileInHand(PlayerState currentPlayer, GameState gameState, Card gainedCard)
        {
            if (currentPlayer.actions.ShouldRevealCardFromHandForCard(gameState, this, gainedCard))
            {
                currentPlayer.RevealAndReturnCardToHand(this, gameState);
                currentPlayer.GainCardFromSupply(Silver.card, gameState);
                return DeckPlacement.None;
            }

            return DeckPlacement.Default;
        }