DiscardCardFromTopOfDeck() private method

private DiscardCardFromTopOfDeck ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card
Beispiel #1
0
 public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState)
 {
     otherPlayer.DiscardCardFromTopOfDeck();
     otherPlayer.GainCardFromSupply(Curse.card, gameState, DeckPlacement.TopOfDeck);
 }
Beispiel #2
0
 public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState)
 {
     Card discardedCard = otherPlayer.DiscardCardFromTopOfDeck();
     if (discardedCard != null)
     {
         if (discardedCard.isVictory)
         {
             otherPlayer.GainCardFromSupply(Cards.Curse, gameState);
         }
         else if (currentPlayer.actions.ShouldGainCard(gameState, discardedCard))
         {
             currentPlayer.GainCardFromSupply(gameState, discardedCard);
         }
         else
         {
             otherPlayer.GainCardFromSupply(gameState, discardedCard);
         }
     }
 }