Dominion.PlayerState.DiscardCardFromTopOfDeck C# (CSharp) Method

DiscardCardFromTopOfDeck() private method

private DiscardCardFromTopOfDeck ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card
        internal Card DiscardCardFromTopOfDeck(GameState gameState)
        {
            Card card = this.deck.DrawCardFromTop();
            if (card != null)
            {
                this.DiscardCard(card, gameState, source:DeckPlacement.TopOfDeck);
            }

            return card;
        }

Usage Example

Beispiel #1
0
 public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState)
 {
     otherPlayer.DiscardCardFromTopOfDeck();
     otherPlayer.GainCardFromSupply(Curse.card, gameState, DeckPlacement.TopOfDeck);
 }
All Usage Examples Of Dominion.PlayerState::DiscardCardFromTopOfDeck
PlayerState