Dominion.PlayerState.GainCardFromSupply C# (CSharp) Method

GainCardFromSupply() private method

private GainCardFromSupply ( GameState gameState, Dominion.Card cardType, DeckPlacement defaultLocation = DeckPlacement.Discard ) : Dominion.Card
gameState GameState
cardType Dominion.Card
defaultLocation DeckPlacement
return Dominion.Card
        internal Card GainCardFromSupply(GameState gameState, Card cardType, DeckPlacement defaultLocation = DeckPlacement.Discard)
        {
            return gameState.PlayerGainCardFromSupply(cardType, this, defaultLocation);
        }

Same methods

PlayerState::GainCardFromSupply ( Dominion.Card card, GameState gameState, DeckPlacement defaultLocation = DeckPlacement.Discard ) : bool

Usage Example

Ejemplo n.º 1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     if (currentPlayer.RequestPlayerDiscardCardFromHand(gameState, acceptableCard => acceptableCard == Estate.card, isOptional: true))
     {
         currentPlayer.AddCoins(4);
     }
     else
     {
         currentPlayer.GainCardFromSupply(Estate.card, gameState);
     }
 }
All Usage Examples Of Dominion.PlayerState::GainCardFromSupply
PlayerState