TrashCardFromHandOfType() private méthode

private TrashCardFromHandOfType ( Dominion.Card card, GameState gameState, bool guaranteeInHand ) : Dominion.Card
card Dominion.Card
gameState GameState
guaranteeInHand bool
Résultat Dominion.Card
Exemple #1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     Card card = currentPlayer.TrashCardFromHandOfType(Copper.card, gameState, guaranteeInHand: false);
     if (card != null)
     {
         currentPlayer.AddCoins(3);
     }
 }
Exemple #2
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     if (currentPlayer.MoveCardFromPlayToTrash(gameState))
     {
         if (currentPlayer.TrashCardFromHandOfType(TreasureMap.card, gameState, guaranteeInHand: false) != null)
         {
             currentPlayer.GainCardsFromSupply(gameState, Gold.card, 4, DeckPlacement.TopOfDeck);
         }
     }
 }