Dominion.PlayerState.DrawOneCardIntoHand C# (CSharp) Method

DrawOneCardIntoHand() private method

private DrawOneCardIntoHand ( GameState gameState ) : bool
gameState GameState
return bool
        internal bool DrawOneCardIntoHand(GameState gameState)
        {
            Card card = this.DrawOneCard(gameState);
            if (card == null)
            {
                return false;
            }

            this.gameLog.DrewCardIntoHand(this, card);
            this.hand.AddCard(card);

            return true;
        }

Usage Example

Ejemplo n.º 1
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.RevealHand();

            if (currentPlayer.hand.HasDuplicates())
            {
                currentPlayer.DrawOneCardIntoHand();
            }
            else
            {
                currentPlayer.DrawAdditionalCardsIntoHand(3);
            }
        }
All Usage Examples Of Dominion.PlayerState::DrawOneCardIntoHand
PlayerState